ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: environment variable
Date Sun, 12 Aug 2001 02:45:21 GMT
>From :

<property environment="env"/>

provides all environment variables as Ant properties prefixed by "env.". For
example, CLASSPATH would be accessible in Ant as ${env.CLASSPATH}.

Although using CLASSPATH is just illustrative, since you could use
${java.class.path} instead - but the same example applies for any other
environment variables you wish to access.


----- Original Message -----
From: "Charles M├ęgnin" <>
To: <>
Sent: Saturday, August 11, 2001 7:33 PM
Subject: environment variable

> Would someone have an example of how an environment
> variable is used in a build ? I can't seem to make any sense
> of the doc on property. Thanks in advance.
> Charles

View raw message