Here you go:


<project name="test" default="test" basedir=".">
  <target name="test">
    <property environment="env"/>
    <echo message="Number of Processors = ${env.NUMBER_OF_PROCESSORS}"/>
    <echo message="ANT_HOME is set to = ${env.ANT_HOME}"/>
  </target>
</project>



Buildfile: build.xml

test:
     [echo] Number of Processors = 1
     [echo] ANT_HOME is set to = F:\Software\Ant

BUILD SUCCESSFUL

Total time: 1 second


----- Original Message ----- 
From: "Anshul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 2:06 PM
Subject: Environement variables again


> Can anyone please send me a snippet of PROPERTY task where in the OS
> environment variable has been imported using ENVIRONEMENT tag.
> Honestly speaking I didn't understand this part of the
> documentation(ENIVIRONMENT tag). I am looking for an example use which I
> don't find anywhere.
> Thanks for your help
> 
> 

Reply via email to