ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KC Baltz <KBa...@responsenetworks.com>
Subject RE: Better way to provide ENV vars to Java.exe?
Date Wed, 29 Nov 2000 13:47:21 GMT
Native methods.  It's an install builder from IBM Alphaworks and it uses
some native code.  That must be how it's doing it.  Thanks for pointing out
that it's not the Java code.  I didn't know that before and it makes me feel
better about having to use <exec> to run a Java .class.

K.C.

> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: Wednesday, November 29, 2000 4:13 AM
> To: ant-user@jakarta.apache.org
> 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