1. all properties returned by java.lang.System.getProperties() are known to
Ant.
You can use them as they are, e.g. ${os.name}, or ${user.home}, etc.
2. you can set properties in the command line when invoking Ant.  For
instance, to 
set and use MYPROP on NT:

set MYPROP = THIS_IS_MY_PROPERTY
java -DMYPROP=%MYPROP% org.apache.tools.ant.Main

and then in Ant you refer to that as to ${MYPROP}...


-----Original Message-----
From: William Lee [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 8:57 AM
To: Ant User
Subject: Environment variable in Ant


I'm wondering how one can refer to an environment variable in Ant's xml
build file?  How do you make the environment variable part of the
property?

Thanks,
Will

Reply via email to