ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shailesh Sharma <>
Subject if/else in ANT ???
Date Tue, 30 Sep 2003 20:49:32 GMT


could somebody tell me how to write an if/else in ANT. This is what i need to do:

Iam setting 3 properties like this:

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


and then in one of my targets ......i need to do something like this:

if(check which ONE property among the above 3 is NOT null) {

// do something like .....assigning something like this:

<env key="VAR1" value="${1}"/>





Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message