ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Breitling <breit...@informatik.tu-muenchen.de>
Subject Re: Access environment variables
Date Tue, 17 Oct 2000 15:38:21 GMT


Hum, i feared that. But then i need a wrapper script and this is not
elegant. Is there a reason for this design?



Stefan Bodewig wrote:
> 
> >>>>> "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

-- 
Peter Breitling
_________________________________________________________________
				http://www.in.tum.de/~breitlip
Mime
View raw message