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