ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guthrie, John" <JGuth...@air.org>
Subject RE: How to get a Environment Variable value from Ant build file?
Date Fri, 29 Mar 2002 20:06:13 GMT
Can you "put one back" too? Like if I wanted to set LD_LIBRARY_PATH within
ant for an exec task?

John Guthrie
AIR.org

-----Original Message-----
From: Stearns, Chris [mailto:chris_stearns@mentorg.com]
Sent: Friday, March 29, 2002 3:11 PM
To: 'Ant Users List'
Subject: RE: How to get a Environment Variable value from Ant build
file?


Yes...

inside your build xml file use the following before you "property name"
sets:

  <property environment="env"/>

then access your Environment variables by:

	${env.<your environment variable name>}

example:
	
	${env.ANT_HOME}

Chris

-----Original Message-----
From: Jiang, Bianca [mailto:BJiang@rational.com]
Sent: Friday, March 29, 2002 1:07 PM
To: ant-user@jakarta.apache.org
Subject: How to get a Environment Variable value from Ant build file?


In my build file, I need to get the value of a user defined env. variable.  
(like the one set for Ant -- ANT_HOME)
It's not any of the Ant build-in properties or system properties from
java.lang.System.getProperties().

Any way to do this?


Thanks,

Bianca



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

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