Hello,

Use the property task with the environ attribute :

http://jakarta.apache.org/ant/manual/CoreTasks/property.html

Regards,
Nicolas

-----Message d'origine-----
De : Jim Downing [mailto:[EMAIL PROTECTED]]
Envoye : jeudi 12 avril 2001 17:17
A : [EMAIL PROTECTED]
Objet : Accessing environment variables


Hi.
I'm a complete Newbie to Ant. I'm trying to construct a simple ant build
file to replace the script based approach I was using. Is it possible to
access OS 
environment variables (such as JAVA_HOME) as properties in build.xml, or do
you have to re-specify them fully as properties in build.xml?

thanks,
Jim

Reply via email to