ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: Access environment variables
Date Tue, 17 Oct 2000 13:34:21 GMT
>>>>> "PB" == Peter Breitling <breitlip@informatik.tu-muenchen.de> writes:

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

Unfortunately there is no portable way to access environment variables
in Java, sorry. You'll need to invoke Ant from a wrapper script with
something like

ant -DJ2EE_HOME=%J2EE_HOME%

or

ant -DJ2EE_HOME=${J2EE_HOME}

Stefan

Mime
View raw message