ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinodh Kumar <vinoh...@gmail.com>
Subject Multiple Arguments Validation
Date Tue, 29 Nov 2011 16:32:51 GMT
Hi,

I have validation scenario of comparing user input match. But how can I
match mulitple args in single condition [I don't want to use multiple
else/if conditions]

If user input matches any one of the values from key dep.env, echos success.

*Ant Scriplet:*
<if>
<equals arg1=&quot;&lt;&lt;USER_INPUT>>" arg2="${dep.env}"/>
<then>
<echo message="Environment Exists"/>
</then>
<else>
<fail message="Environment Exists"/>
</else>
</if>

*Property file:*

dep.env=IT1,IT2,IT3,IT4,IT5,IT9,QA1,QA2,QA3,QA4,QA5,QA6,Prod


--Vinodh

--
View this message in context: http://ant.1045680.n5.nabble.com/Multiple-Arguments-Validation-tp5032934p5032934.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