ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fergus Gallagher <Fergus.Gallag...@OrbisUK.com>
Subject Re: Environment Variables
Date Wed, 11 Oct 2000 13:09:19 GMT
Java can't access environmental vars, you'll need to pass them in explicitly as

         build.sh -DNAME1=$NAME1 -DNAME2=$NAME2 ....

or (for Windows)

         build -DNAME1=%NAME1% -DNAME2=%NAME2% .....


e.g.,

         build.sh -Dbuild.dest=/tmp/build/


At 14:51 11/10/00 +0200, Luca Botti wrote:

>Hi everybody
>I am trying to have just one build.xml for Solaris and Windows. Is there any
>way to have ant "see" envirnoment vars and set properties accordingly?
>
>TIA
>
>Luca Botti

-- 
Fergus Gallagher
Orbis
http://www.orbisuk.com/
+44-(0)20-8987 0717


Mime
View raw message