ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sdeva <d...@india.triviumsys.com>
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 ant.sh. I guess there is no
direct way to access environment in java.

-Deva.

-----Original Message-----
From: Peter Breitling [mailto:breitlip@informatik.tu-muenchen.de]
Sent: Tuesday, October 17, 2000 8:58 PM
To: ant-user@jakarta.apache.org
Subject: Access environment variables


Hi,

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.

Thanks
-- 
Peter Breitling
_________________________________________________________________
				http://www.in.tum.de/~breitlip

Mime
View raw message