ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Lennon Bowman <ebow...@boboco.ie>
Subject Re: Env Properties & Linux?
Date Sun, 13 Jul 2003 22:41:12 GMT
Jason Varsoke wrote:
> I'm trying to get access to the system environment properties on Linux
> (Specifically SuSE 8.2).  I mention this because the manual states that
> this tag doesn't work for all platforms -- though I'd be surprised if
> Linux was such a platform.  Anyway here's my test build.xml
> 
> <project name="env" default="debug">
> 
>    <!-- tasks -->
>    <target name="debug">
>    <property environment="env"/>
>    <property name="junit.home"        value="${env.JUNIT_HOME}"/>
>    <echo message="Number of Processors = ${env.NUMBER_OF_PROCESSORS}"/>
>    <echo message="ANT_HOME is set to = ${env.ANT_HOME}"/>
>    <echo message="${junit.home}"/>
>    <echo message="${env.JUNIT_HOME}"/>
>    </target>
> </project>
> 
> Do I have Ant configured wrong or something?

You might try moving the <property environment="env"/> out to "global 
scope".

I use this functionality all the time...it definitely works.


-- 
Eric Lennon Bowman
BoboCo Ltd
ebowman@boboco.ie
http://www.boboco.ie/ebowman/pubkey.pgp
+35317978944


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message