ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Cook" <jimc...@iname.com>
Subject Re: Better way to provide ENV vars to Java.exe?
Date Wed, 29 Nov 2000 13:41:38 GMT
I thought it was only deprecated, but still worked?

jim

----- Original Message ----- 
From: "Stefan Bodewig" <bodewig@apache.org>
To: <ant-user@jakarta.apache.org>
Sent: Wednesday, November 29, 2000 4:12 AM
Subject: Re: Better way to provide ENV vars to Java.exe?


> KC Baltz <KBaltz@responsenetworks.com> wrote:
> 
> > We have a Java .class that expects an environment variable to be set
> > (not a system property, no such luck)
> 
> How so? How are they doing that (accessing the environment variable)?
> Are they willing to contribute the code to Ant? 8-)
> 
> Seriously, I don't know any way - without falling back to native
> methods or external scripts - to access environment variables from
> within Java for any JDK > 1.0. System.getEnv will throw an Exception
> immediately.
> 
> Stefan


Mime
View raw message