ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: How to get a Environment Variable value from Ant build file?
Date Sun, 31 Mar 2002 18:06:20 GMT
Talking about <exec>'s <env>, I'm confused by the current doc. Seems like
using <env> once doesn't pass in current environment to sub-process, but
attribute newenvironment seems to indicate the contrary. What am I missing?

And what exactly are:
* the old environment,
* the environment of the current Ant process?

Are these two really different?

Thanks, --DD

--- extract from http://jakarta.apache.org/ant/manual/CoreTasks/exec.html
----
newenvironment: Do not propagate old environment when new environment
variables are specified. Required? No, default is false 

env: It is possible to specify environment variables to pass to the system
command via nested <env> elements. Please note that the environment of the
current Ant process is not passed to the system command if you specify
variables using <env>.


-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Friday, March 29, 2002 3:19 PM
To: Ant Users List
Subject: RE: How to get a Environment Variable value from Ant build
file?


--- "Guthrie, John" <JGuthrie@air.org> wrote:
> Can you "put one back" too? Like if I wanted to set LD_LIBRARY_PATH
> within ant for an exec task?

See the <env> nested element.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message