ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject RE: Better way to provide ENV vars to Java.exe?
Date Wed, 29 Nov 2000 13:44:14 GMT
No, it is deprecated and *doesn't* work.

> -----Original Message-----
> From: James Cook [mailto:jimcook@iname.com]
> Sent: Thursday, 30 November 2000 0:42
> To: ant-user@jakarta.apache.org
> Subject: Re: Better way to provide ENV vars to Java.exe?
>
>
> 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