ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raja Nagendra Kumar <Nagendra.R...@tejasoft.com>
Subject Re: Reading environment variables in ant script directly
Date Thu, 31 Dec 2009 05:54:24 GMT

True Antonine.

I clearly understand that using of env is not to be encouraged and ant has a
way to use them with care if one wants.

Infact, our internal Mobile Single Source Build Framework keeps this
principle in very close to keep our self more portable. 

However, we still there is a need for access the common boiler plate ant
script or ant properties which should exist on in system folders such
${user.home} or any of the currently exposed ant default properties. It is
just one variable, we need to depend on. Only for such reason, we are doing
a explicit evn property declaration and rest of them are pure ant.

Though it is one line (which is not too bad for us due to limited projects)
for big enterprises with many projects, I was suggesting that why not ant 
provide such custom properties though automatic support fetching the
variables though some stand prefix such as evn.xxx etc.

Not sure, if made our point clear to ant developers to see some value of
making by default environment variables available though some standard
prefix, implicitly.

Regards,
Nagendra

antoinell wrote:
> 
> 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.
> 
> Regards,
> 
> Antoine
> 
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Reading-environment-variables-in-ant-script-directly-tp26964622p26975719.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message