ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Reading OS-Specific Environment Variables
Date Tue, 27 May 2003 07:21:06 GMT
On Tue, 27 May 2003, Oliver Alth <OALTH@de.ibm.com> wrote:

> setNewenvironment(true);
> exec.setEnvironment(values);
> 
> Right?

Almost

> Now my question: Does a command use both of these variables (the
> default ones and my new ones)?

You control that via setNewenvironment.

If you set it to true, you will only get your new variables, if you
set it to false (the default) the process environment will be a
combination of the old and the new environment (with your definitions
overriding existing ones).

Stefan

Mime
View raw message