Jim Downing wrote:

> 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

<property environment="your_prefix_here" />

<echo>
The value of the JAVA_HOME environment variable is
${your_prefix_here.JAVA_HOME}
</echo>

Glenn

Reply via email to