ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Kur <maxim....@epit.com>
Subject RE: Environment variable in Ant
Date Thu, 11 Jan 2001 20:09:23 GMT
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:wlee@sendmail.com]
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

Mime
View raw message