ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anupama Ramesh" <anupama.ram...@demandtec.com>
Subject RE: How do I check NT env. variable value and run the target based on thatvalue?
Date Wed, 08 May 2002 17:32:23 GMT
You can do something like:
<property environment="env"/>
<property name="env.COMPUTERNAME"	value="${env.HOSTNAME}"/>
and use the property you defined( env.COMPUTERNAME) to check it.
-anu.

-----Original Message-----
From: Srinivas_Pasuparthi@i2.com [mailto:Srinivas_Pasuparthi@i2.com]
Sent: Wednesday, May 08, 2002 10:04 AM
To: ant-user@jakarta.apache.org
Subject: How do I check NT env. variable value and run the target based
on thatvalue?


Hi,

I would like to check the value of an environment variable defined in 
Windows and based on that value, I should be able to either run/not run a 
target.  How can I do it in Ant 1.4.1??  I appreciate your help in 
advance.

Thanks,
Sri.

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