ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David W Forslund <...@lanl.gov>
Subject RE: <arg>
Date Thu, 10 Aug 2000 20:03:38 GMT
This seems to be what is happening and I also believe that it makes
setting the environment for exec very fragile, because it can cause
unanticpated side effects.    This is exactly what I've seen.
Being able to add to the environment variables would be great.

Thanks,

Dave
Jose  Alberto Fernandez writes:
 > I think Runtime.exec replaces completely the current environment 
 > with what you pass, as oppose to adding to the environment.
 > 
 > This to me is a major BUG on the API making Runtime.exec() with environment
 > almost useless. How can anyone ADD to the environment of a call if there is
 > no way to know what was there before?
 > 
 > Am I off the ball here? Is this a bug in certain implementations or a bug in
 > the spec? Is the spec not precise enough?
 > 
 > Jose Alberto
 > 
 > 
 > > -----Original Message-----
 > > From: David Forslund [mailto:dwf@lanl.gov]
 > > Sent: Thursday, August 10, 2000 10:27 AM
 > > To: ant-dev@jakarta.apache.org; ant-dev@jakarta.apache.org
 > > Subject: Re: <arg>
 > > 
 > > 
 > > I still don't see the environment passed, but I do see that 
 > > if I set the 
 > > PATH variable, my CLASSPATH environment
 > > must not be passed.   I have to set both PATH and CLASSPATH to get my 
 > > environment to my application.
 > > I guess I don't understand why this needs to be the case.
 > > 
 > > Dave
 > > At 05:34 PM 8/10/00 +0200, Stefan Bodewig wrote:
 > > > >>>>> "DF" == David Forslund <dwf@lanl.gov> writes:
 > > >
 > > >  DF> I can't get the -verbose flag to tell me what was 
 > > actually passed
 > > >
 > > >I've just checked in a version that should list the 
 > > environment passed
 > > >to the sub process.
 > > >
 > > >Stefan
 > > 

Mime
View raw message