ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject AW: setting environmental variable from Ant script
Date Fri, 14 Mar 2003 09:20:34 GMT
So you can write a target for that?

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

Jan Matèrne

-----Ursprüngliche Nachricht-----
Von: kriss []
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.

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


  To unsubscribe, e-mail:
  For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message