ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hagen, Christian" <cha...@init-ka.de>
Subject AW: Getting the value of an environment variable?
Date Mon, 26 Jan 2004 08:17:56 GMT
Hi Adrian,

<property environment="env"/>
[...] ${env.CATALINA_HOME} [...]

should work.

see http://ant.apache.org/manual/CoreTasks/property.html



Greetings
Chris



> -----Urspr√ľngliche Nachricht-----
> Von: Adrian Beech [mailto:a.beech@bigpond.net.au]
> Gesendet: Montag, 26. Januar 2004 08:30
> An: user@ant.apache.org
> Betreff: Getting the value of an environment variable?
> 
> 
> G'day folks,
> 
> Is it possible to get the value of an environment variable and have it
> stored as a property?  For example, I'd like to grab the value of
> Catalina_Home, which is defined as a system environment variable on my
> Windows XP box and as a shell environment variable on my Linux
> development system, and have it shoe horned into catalina.home in ant.
> 
> Thanks if you can help.
> 
> AB
> 
> 
> 
> ---------------------------------------------------------------------
> 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