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:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 1:07 PM
To: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to