ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anshul" <letusdisc...@yahoo.com>
Subject RE: Environement variables again
Date Wed, 18 Jul 2001 12:41:35 GMT
Thanks.
It worked.

-----Original Message-----
From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
Sent: Wednesday, July 18, 2001 9:49 AM
To: ant-user@jakarta.apache.org
Subject: Re: Environement variables again


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" <letusdiscuss@yahoo.com>
To: <ant-user@jakarta.apache.org>
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
> 
> 

Mime
View raw message