ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sdeva <>
Subject RE: Access environment variables
Date Tue, 17 Oct 2000 13:40:45 GMT
You have to modify ant command line to include -DJ2EE_HOME=%J2EE_HOME% and
access this variable inside build.xml as ${J2EE_HOME}. For portability have
two different ant command lines, ant.bat and I guess there is no
direct way to access environment in java.


-----Original Message-----
From: Peter Breitling []
Sent: Tuesday, October 17, 2000 8:58 PM
Subject: Access environment variables


i am new to ant and have a trivial question:

How do i access environment variables in the build.xml.

I want to access %J2EE_HOME% environment in a portable way.

Peter Breitling

View raw message