ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sukanya <sukanyade...@yahoo.co.in>
Subject Multiple conditions satisfying in an ant target
Date Fri, 31 Oct 2008 07:48:28 GMT

Hi All,

I have two separate conditions using equals operator. There is an ant call
to a target. This target has a check for unless with one of the conditions.
How do I include another unless such tat the second condition is also
included in this single ant target. 

eg: 


<condition property="iswow">
 <equals arg1="wow" arg2="wow" trim="true"/>     	
</condition>

<condition property="isbad">
 <equals arg1="bad" arg2="bad" trim="true"/>     	
</condition>
</target>


  
  <target name="antcall"  unless="iswow" >
 
	<echo>Start something new</echo>
</target>


Here how do i inclue isbad also as an unless condition to the same target
antcall?
-- 
View this message in context: http://www.nabble.com/Multiple-conditions-satisfying-in-an-ant-target-tp20261337p20261337.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message