ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janu Mohandass <>
Subject Check for Env variables
Date Wed, 23 Mar 2005 04:44:15 GMT


I am newbie in ANT. My requirement is, if the environment variable is not
set , then I want  the output to go to the current directory, else
the value should be picked up from the environment variable. I hv written
the following piece of code,

                        <equals arg1="${env.BLD_OUTPUT}" arg2=""/>
                            <property name="" value="."/>
                            <property name=""

But what happens is ,  If the environment variable is not set, My first
condition does not get executed, the value of is set to ${env.BLD_OUTPUT}.

Waiting for suggestions.

Thanks in advance.


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

View raw message