Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Settting environment variables

Settting environment variables

2007-04-19       - By query
Reply:     1     2     3     4     5     6     7     8     9     10  

?

Hi,

I am having a set of ANT build files. I want to change "Path" and "include"
environment variables only in build file.
I tried the following options to reset "include" variable in the build file.

<property environment="env"/>    
1.<exec executable="cmd">
    <env key="include" path="${new.includepath}"/>
 </exec>
 
2.<property name="${env.include}" value="${new.includepath}"/>

3.<property name="env.include" value="${new.includepath}"/>

4.<property name="env.${include}" value="${new.includepath}"/>


When I tried to echo "include" variable in the same build file, it is still
showing the default old settings.

Is there any other way to modify the environment variables only for some
instance and not for other?

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.