ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: How to set an environment variable through Ant?
Date Fri, 02 Nov 2007 06:15:41 GMT
To be precise there are many processes:

01: $ant
02: <project>
03:     <java> / <exec>
04: </project>


environment(01) --> java-Ant(01) --> external process (03)

You can only pass environment variables along this road, not in the other
direction.


Jan


>-----Urspr√ľngliche Nachricht-----
>Von: Ninju Bohra [mailto:ninju_bohra@yahoo.com] 
>Gesendet: Freitag, 2. November 2007 07:06
>An: Ant Users List
>Betreff: Re: How to set an environment variable through Ant?
>
>Hello,
>
>
>
>For ANT task that spawn a seperate process (<javac> and <exec>
>come to mind) there are attributes to allow you define 
>'environment variable' that will be applied to the process 
>that the task will run in.
>
>The ANT Manual for these two tasks are quite helpful
>
>Hope that helps,
>
>Ninju
> 
>
>
>
>
>
>
>
>----- Original Message ----
>
>From: Saladin Sharif <al_zawiah@yahoo.com>
>
>To: user@ant.apache.org
>
>Sent: Thursday, November 1, 2007 7:51:48 PM
>
>Subject: How to set an environment variable through Ant?
>
>
>
> I am just curious whether there is a clean way to set 
>environment  variables through ANT.  You see, before running 
>my Ant script, I am  currently setting my environment 
>variables through a shell script, and I aslo  have a batch 
>script version for when running Ant on windows.  I would  like 
>to get rid of the shell script / batch script, and just set 
>those  environment variables directly in my Ant script 
>(build.xml).  Is this  something possible with Ant?
>
>
>
>Thanks in advance,
>
>-Saladin
>
>
>
>
>
>
>
>**********************************************************
>
>* Saladin Sharif
>
>* e-mail: al_zawiah@yahoo.com
>
>* Visit homepage @ http://gaia.ecs.csus.edu/~sharifs
>
>**********************************************************
>
>
>
>__________________________________________________
>
>Do You Yahoo!?
>
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>
>http://mail.yahoo.com 
>
>
>
>---------------------------------------------------------------------
>
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>
>
>
>
>
>
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message