ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Broderick, Kevin" <>
Subject RE: Environment variables
Date Wed, 30 Jan 2002 11:57:06 GMT
Could you use the <available> tag to check if the directory is there ?

-----Original Message-----
From: Peter Kesch []
Sent: 30 January 2002 11:53
To: Ant Users List
Subject: AW: Environment variables

i know how to get access to the environment varibles ...
but i want check if it is set or not.

<property environmetnt="env" />
<property name="tomcathome" value="${env.TOMCAT_HOME}" />

<target name...>
<condition property="tomcatset">
<equals arg1="${tomcathome} arg2= ?????   />

but what is ${tomcat} set to if the environment TOMCAT_HOME isn't set


-----Urspr√ľngliche Nachricht-----
Von: Peter Donald []
Gesendet: Mittwoch, 30. Januar 2002 12:25
An: Ant Users List
Betreff: Re: Environment variables

On Wed, 30 Jan 2002 22:22, Peter Kesch wrote:
> can i check if an environment variable is set or not ????
> i want to copy the JSPs into the Tomcat webapps-directory but it
depends on
> if the environment variable is set or not because without it i have no
> information about the path to the webapps directory ....
> i tried it with the condition task but i have nothing to compare the
> variable to ...
> any hints ??

read the docs property task - specifically the environment attribute ;)



"Sometimes its better to keep your mouth shut and 
let people think your an idiot, than to open it 
and remove all doubt." 

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

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

View raw message