ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas LEHUEN <nicolas.leh...@ubicco.com>
Subject RE: Accessing environment variables
Date Thu, 12 Apr 2001 15:24:53 GMT
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:jimdowning@crosswinds.net]
Envoye : jeudi 12 avril 2001 17:17
A : ant-user@jakarta.apache.org
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

Mime
View raw message