ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Environment variables
Date Wed, 30 Jan 2002 11:54:57 GMT
On Wed, 30 Jan 2002, Peter Kesch <kesch@swt.ruhr-uni-bochum.de> wrote:

> <property environmetnt="env" />
> <property name="tomcathome" value="${env.TOMCAT_HOME}" />
> 
> <condition property="tomcatset">
>   <and>
>     <equals arg1="${tomcathome} arg2= ?????   />
>   </and>
> </condition>
>
> but what is ${tomcat} set to if the environment TOMCAT_HOME isn't
> set ?????

${env.TOMCAT_HOME} literally.  So arg2 would be $${env.TOMCAT_HOME},
note the double $ sign.

In Ant 1.5 there will be an <isset> condition.

Stefan

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


Mime
View raw message