diff --git a/WHATSNEW b/WHATSNEW
index bf247d839..f09b92a46 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -13,7 +13,7 @@ org.apache.tools.ant to org.apache.tools.ant.types.
* the class attribute of Version 1.2 - 2000/07/28 Version 1.2 - 2000/08/09
Table of Contents
@@ -1160,6 +1160,56 @@ systems.
<exec dir="${src}" command="dir" os="windows"
output="dir.txt" />
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>
.
Attribute | +Description | +Required | +
key | +The name of the environment variable. | +Yes | +
value | +The literal value for the environment variable. | +Exactly one of these. | +
path | +The value for a PATH like environment + variable. You can use ; or : as path separators and Ant will + convert it to the platform's local conventions. | +|
file | +The value for the environment variable. Will be + replaced by the absolute filename of the file by Ant. | +
++<exec command="emacs" > + <env key="DISPLAY" value=":1.0" /> +</exec> +
starts emacs
on display 1 of the X Window System.
++<exec ... > + <env key="PATH" path="${java.library.path}:${basedir}/bin" /> +</exec> +
adds ${basedir}/bin
to the PATH
of the
+system command.