ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikas Phonsa <>
Subject RE: if/else in ANT ???
Date Tue, 30 Sep 2003 21:28:06 GMT
I'm not sure what u mean by null. You could use a target with "if" or
"unless" attributes for this to check if a property has been set or not.

If this doesn't work for you then see the tasks in ant-contrib .


-----Original Message-----
From: Shailesh Sharma [] 
Sent: Tuesday, September 30, 2003 2:15 PM
To: Ant Users List
Subject: if/else in ANT ???

How does this work out in ANT:

    <property name="1" value="ONE" />
    <property name="2" value="" />
    <property name="3" value="" />

<check to see which value among the above 3 is NOT null>

if(any of the value is NOT null)

// do something ...


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message