ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy Lambert <>
Subject Re: Reading environment variables in ant script directly
Date Wed, 30 Dec 2009 23:00:29 GMT
Hello Raja,

some ant scripts need access to environment variables but a lot of them 
do not. So this leaves it to each build file developer to decide whether 
he wants his ant property environment to include properties.

Now you can create easily a standard build file that you import 
everywhere and containing the line <property environment="env"/>.

You may end up with other "boilerplate" declarations that you want in 
all your build files.



Raja Nagendra Kumar wrote:
> Sure joe, now I understand why we need to give a prefix. Joe, I was looking
> for why ant did not ant make all the environment variables available through
> some documented prefix notation rather by default rather than user adding
> this line in each build script.
> <property environment="env"/>
> Regards,
> Nagendra

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message