You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Baz <ba...@goodconsultants.com> on 2003/12/15 08:30:40 UTC
Question about validating environment variables and assigning parameters
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