Java Mailing List Archive

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

Apache Ant Archive

» Ant Users List
» Ant Developers List
setting environmental variable from Ant script

setting environmental variable from Ant script

2003-03-14       - By kriss
Reply:     1     2     3     4     5     6  

Never tried, but I guess yes

Kriss
 ----- Original Message -----
 From: Jan.Materne@(protected)
 To: user@(protected)
 Sent: Friday, March 14, 2003 10:20 AM
 Subject: AW: setting environmental variable from Ant script


 So you can write a target for that?

 <target name="setEnv">
     <exec executable="setX" ... os="windows"/>
     <exec executable="set"  ... os="unix"/>
     ... other platforms
 </target>


 Jan Mat?rne


 -----Urspr?ngliche Nachricht-----
 Von: kriss [mailto:madrockriss@(protected)]
 Gesendet am: Freitag, 14. M?rz 2003 10:15
 An: Ant Users List
 Betreff: Re: setting environmental variable from Ant script

 I'm afraid there is nothing platform-independent, in windows you can use
 setX from the Ressource kit, and in linux/unix worlds the standard command.

 kriss
   ----- Original Message -----
   From: Alexei Betin
   To: Ant Users List
   Sent: Thursday, March 13, 2003 8:07 PM
   Subject: setting environmental variable from Ant script


   is there a clean platform-independent way
   that I am missing or I simply should
   have my build script generate a shell-script
   & call it?

   Thanks,
   ~Alexei

   ---------------------------------------------------------------------
   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.