phing nested if conditions
Posted
by Matt1776
on Stack Overflow
See other posts from Stack Overflow
or by Matt1776
Published on 2010-03-26T00:31:16Z
Indexed on
2010/03/26
0:33 UTC
Read the original article
Hit count: 272
phing
Hello - I am having trouble understanding the Phing documentation regarding multiple conditions for a given tag. It implies you cannot have multiple conditions unless you use the tag, but there are no examples of how to use it. Consequently I nested two tags, however I feel silly doing this when I know there is a better way. Does anyone know how I can use the tag to accomplish the following:
<if><equals arg1="${deployment.host.type}" arg2="unrestricted" /><then>
<if><equals arg1="${db.adapter}" arg2="PDO_MYSQL"/><then>
<!-- Code Here -->
</then></if>
</then></if>
© Stack Overflow or respective owner