ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Graham" <>
Subject Re: Using System Environment variables
Date Mon, 07 May 2001 08:10:48 GMT
The most common way of doing this is to pass the environment variables in on
the command line, using the '-D' option.

I don't know any other way of getting access to environment variables from
within the build script.

Stephen Graham.

----- Original Message -----
From: "Perry Hunchak" <>
To: <>
Sent: Friday, May 04, 2001 12:27 AM
Subject: Using System Environment variables

Is there any way to use the system environment variables (for windows)
in the build.xml file ant uses?

I currently use specify my tomcat home by pointing to the file system

  <property name="tomcat.home" value="d:/java/tomcat3.2.1"/>

But I'd like to just use the system environment variable so I could use
this on different servers

  <property name="tomcat.home" value="Tomcat_Home"/>

Is there any way to do this?

View raw message