ant-user mailing list archives

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

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


> 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).


View raw message