Use <groovy> ;)

On Mar 6, 2009, at 1:39 AM, NR031 wrote:


Hi,

How do I use nested <if> tag in ant script. I want to check 2 strings and if both are true then it has to do some action. I did like this but
getting You must not nest more than one condition into if

<if>
           <equals arg1="abc" arg2="abc"/>
           <and>
               <equals arg1="def" arg2="defl"/>
           </and>
           <then>
               <echo>success</echo>
               <property name="letter" value="abcdef" />
           </then>
</if>
--
View this message in context: 
http://www.nabble.com/How-to-use-nested-if-in-ant-script--tp22368213p22368213.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to