ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Blagas...@loftware.com>
Subject RE: How to test whether a particular environment variable is set or not
Date Tue, 09 Aug 2005 17:33:43 GMT
Sorry, was thinking of NAnt....

-----Original Message-----
From: Alexey N. Solofnenko [mailto:A.Solofnenko@mdl.com] 
Sent: Tuesday, August 09, 2005 1:09 PM
To: Ant Users List
Subject: Re: How to test whether a particular environment variable is
set or not

The second <property> will not work, because the property is already set

earlier. You may want to execute them in reverse order.

- Alexey.

Blagassie@loftware.com wrote:
> This will trim down the previous post
>
> <property name="test.home" value="TO_BE_REPLACED"/>   
> <if>
>    <isset property="env.TEST_HOME"/>
>    <then>
>       <property name="test.home" value="${env.TEST_HOME}/>
>    </then>
> </if>
>
>   

-- 

------------------------------------------------------------------------
/ Alexey N. Solofnenko
home: http://trelony.cjb.net/
/

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



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


Mime
View raw message