ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Broderick, Kevin" <kevin.broder...@iona.com>
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 [mailto:kesch@swt.ruhr-uni-bochum.de]
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">
<and>
<equals arg1="${tomcathome} arg2= ?????   />
</and>
</condition>
</target>

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

Peter

-----Urspr√ľngliche Nachricht-----
Von: Peter Donald [mailto:peter@apache.org]
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 ;)

-- 
Cheers,

Pete

-------------------------------------------------
"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:
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>


--
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