ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emil Alexandrov" <>
Subject RE: Accessing system variables
Date Wed, 23 Oct 2002 05:59:35 GMT
In the Ant manual is said ...
"Built-in Properties
Ant provides access to all system properties as if they had been defined using a <property>
task. For example, ${} expands to the name of the operating system.
For a list of system properties see the Javadoc of System.getProperties. 
In addition, Ant has some built-in properties: ..."

In the system properties you have computer name.


-----Original Message-----
From: Christian Cryder [] 
Sent: 23 Октомври 2002 г. 02:33
To: Ant-User
Subject: Accessing system variables

Is there anyway to access system variables within Ant? For instance, I'd like to do this:

    <echo message="ANT_HOME defined as ${env.ANT_HOME}" />

I'd also like to know if there is anyway to retrieve the host/computer name from within Ant?

Christian Cryder []
Internet Architect,
Barracuda -
"Coffee? I could quit anytime, just not today"

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message