ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kriss" <madrockr...@hotmail.com>
Subject Re: setting environmental variable from Ant script
Date Fri, 14 Mar 2003 09:23:10 GMT
Never tried, but I guess yes

Kriss
  ----- Original Message ----- 
  From: Jan.Materne@rzf.fin-nrw.de 
  To: user@ant.apache.org 
  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@hotmail.com]
  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@ant.apache.org
    For additional commands, e-mail: user-help@ant.apache.org




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