Hello - I am having trouble understanding the Phing documentation regarding multiple conditions for a given <if>
tag. It implies you cannot have multiple conditions unless you use the <and>
tag, but there are no examples of how to use it. Consequently I nested two <if>
tags, however I feel silly doing this when I know there is a better way. Does anyone know how I can use the <and>
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>
I find it very surprising that no one has had any experience with this. Phing is an implementation of the 'ANT' build tool in PHP instead of Java. It is very useful for PHP developers who feel a lack of a simple and powerful deployment tool. Java's ability to package self contained web projects into a single file or package multiple web project files into a yet bigger file is an amazing capability. ANT or Phing does not get PHP to that point, but its a definite step in the right direction and leaps and bounds easier to understand and use than GNU Make ever was or will be.