ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baz" <ba...@goodconsultants.com>
Subject Question about validating environment variables and assigning parameters
Date Mon, 15 Dec 2003 07:30:40 GMT
All,

I am trying to do this:

<property name="javaBase" value="${system.JAVA_HOME}"/>

<target name="barry" if="javaBase">

        <echo message="TEST: JAVA_HOME is ${javaBase}."/>

</target>

The problem is, there will always be a value for ${javaBase}. See the
following output...

barry:
     [echo] TEST: JAVA_HOME is ${system.JAVA_HOME}.

How can I do it properly? Please help.

Thanks

Barry


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


Mime
View raw message