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 has been removed. -* has lost some of its attributes. +* and have lost some of their attributes. * and have lost some undocumented attributes. @@ -34,10 +34,9 @@ all files if the stylesheet changes. * New data types fileset and patternset - expected to get a broader use, pending documentation. -* You can specify environment variables to the exec task - pending -documentation. +* You can specify environment variables to . -* Get can check whether a remote file is actually newer than a local +* can check whether a remote file is actually newer than a local copy before it starts a download (HTTP only). * Added a -logger option to allow the class which performs logging to be diff --git a/docs/index.html b/docs/index.html index 701841c96..68e783bd7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -25,7 +25,7 @@
  • Dave Walend (dwalend@cs.tufts.edu)
  • -

    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" />

    + +

    Parameters specified as nested elements

    +

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

    + + + + + + + + + + + + + + + + + + + + + + + + +
    AttributeDescriptionRequired
    keyThe name of the environment variable.Yes
    valueThe literal value for the environment variable.Exactly one of these.
    pathThe 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.
    fileThe value for the environment variable. Will be + replaced by the absolute filename of the file by Ant.
    +
    Examples
    +
    +<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.


    Expand/Unzip/Unjar

    Description