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-05-09       - By query
Reply:     1     2     3     4     5     6     7     8     9     10  

?
I again tried to set PATH and INCLUDE env variables. But when I echo the env
variables after modifying the variables, changes are not reflected in the log
file.
My ANT script change is:
property environment="env"/>
<exec executable="cmd">
     <env key="include" path="${new.includepath}"/>
</exec>
<echo message ="include=${env.include}"/>

Similarly I have tried for Path env variable. But it is not working.

If there is any other way to set variables, please let me know. Due to this
issue, it is hampering my work.........


Note: Forwarded message attached

-- Original Message --

From: Ninju Bohra <ninju_bohra@(protected)>
To: Ant Users List <user@(protected)>
Subject: Re: Re: Settting environment variables

<P>
&nbsp; <BR>
I again tried to set PATH and INCLUDE env variables. But when I echo the env
variables after modifying the variables, changes are not reflected in the log
file.<BR>
My ANT script change is:<BR>
property environment=&quot;env&quot;/&gt;<BR>
&lt;exec executable=&quot;cmd&quot;&gt;<BR>
&nbsp; &nbsp; &nbsp; &lt;env key=&quot;include&quot; path=&quot;${new
.includepath}&quot;/&gt;<BR>
&lt;/exec&gt;<BR>
&lt;echo message =&quot;include=${env.include}&quot;/&gt;<BR>
<BR>
Similarly I have tried for Path env variable. But it is not working.<BR>
<BR>
If there is any other way to set variables, please let me know. Due to this
issue, it is hampering my work.........<BR>
<BR>
<BR>
Note: Forwarded message attached<BR>
<BR>
-- Original Message --<BR>
<BR>
From: Ninju Bohra &lt;ninju_bohra@(protected)&gt;<BR>
To: Ant Users List &lt;user@(protected)&gt;<BR>
Subject: Re: Re: Settting environment variables<BR>

</P>
<br><br>
<Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style='font
-family:Verdana;font-size:11px;line-height:15px;'><TR><td><a href='http:/
/adworks.rediff.com/cgi-bin/AdWorks/click.cgi/www.rediff.com/signature-home.htm
/1050715198@(protected)/1105834_1100164/1105050/1?PARTNER=3&OAS_QUERY=null target
=new '><img src =http://imadworks.rediff.com/cgi-bin/AdWorks/adimage.cgi/1105834
_1100164/creative_1105050.gif  alt='578x38_salary.gif'  border=0></a></td></TR><
/Table>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

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