ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/docs index.html
Date Wed, 09 Aug 2000 14:59:08 GMT
bodewig     00/08/09 07:59:08

  Modified:    .        WHATSNEW
               docs     index.html
  Log:
  Documentation for nested <env> in <exec>.
  
  Revision  Changes    Path
  1.14      +3 -4      jakarta-ant/WHATSNEW
  
  Index: WHATSNEW
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/WHATSNEW,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- WHATSNEW	2000/08/09 14:31:05	1.13
  +++ WHATSNEW	2000/08/09 14:59:06	1.14
  @@ -13,7 +13,7 @@
   
   * the class attribute of <java> has been removed.
   
  -* <patch> has lost some of its attributes.
  +* <patch> and <javadoc> have lost some of their attributes.
   
   * <java> and <cvs> have lost some undocumented attributes.
   
  @@ -34,10 +34,9 @@
   * 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 <exec>.
   
  -* Get can check whether a remote file is actually newer than a local
  +* <get> 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 
  
  
  
  1.71      +51 -1     jakarta-ant/docs/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/docs/index.html,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- index.html	2000/08/09 14:31:09	1.70
  +++ index.html	2000/08/09 14:59:06	1.71
  @@ -25,7 +25,7 @@
     <li>Dave Walend (<a href="mailto:dwalend@cs.tufts.edu">dwalend@cs.tufts.edu</a>)</li>
   </ul>
   
  -<p>Version 1.2 - 2000/07/28</p>
  +<p>Version 1.2 - 2000/08/09</p>
   
   <hr>
   <h2>Table of Contents</h2>
  @@ -1160,6 +1160,56 @@
     <p><code>&lt;exec dir=&quot;${src}&quot; command=&quot;dir&quot;
os=&quot;windows&quot;
     output=&quot;dir.txt&quot; /&gt;</code></p>
   </blockquote>
  +
  +<h3>Parameters specified as nested elements</h3>
  +<h4><a name="env">env</a></h4>
  +<p>It is possible to specify environment variables to pass to the
  +system command via nested <code>&lt;env&gt;</code> elements.</p>
  +<p>Please note that the environment of the current Ant process is
  +<b>not</b> passed to the system command if you specify variables using
  +<code>&lt;env&gt;</code>.</p>
  +<table border="1" cellpadding="2" cellspacing="0">
  +  <tr>
  +    <td valign="top"><b>Attribute</b></td>
  +    <td valign="top"><b>Description</b></td>
  +    <td align="center" valign="top"><b>Required</b></td>
  +  </tr>
  +  <tr>
  +    <td valign="top">key</td>
  +    <td valign="top">The name of the environment variable.</td>
  +    <td align="center" valign="top">Yes</td>
  +  </tr>
  +  <tr>
  +    <td valign="top">value</td>
  +    <td valign="top">The literal value for the environment variable.</td>
  +    <td align="center" rowspan="3">Exactly one of these.</td>
  +  </tr>
  +  <tr>
  +    <td valign="top">path</td>
  +    <td valign="top">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.</td>
  +  </tr>
  +  <tr>
  +    <td valign="top">file</td>
  +    <td valign="top">The value for the environment variable. Will be
  +      replaced by the absolute filename of the file by Ant.</td>
  +  </tr>
  +</table>
  +<h5>Examples</h5>
  +<blockquote><pre>
  +&lt;exec command="emacs" &gt;
  +  &lt;env key=&quot;DISPLAY&quot; value=&quot;:1.0&quot; /&gt;
  +&lt;/exec&gt;
  +</pre></blockquote>
  +<p>starts <code>emacs</code> on display 1 of the X Window System.</p>
  +<blockquote><pre>
  +&lt;exec ... &gt;
  +  &lt;env key=&quot;PATH&quot; path=&quot;${java.library.path}:${basedir}/bin&quot;
/&gt;
  +&lt;/exec&gt;
  +</pre></blockquote>
  +<p>adds <code>${basedir}/bin</code> to the <code>PATH</code>
of the
  +system command.</p>
   <hr>
   <h2><a name="unzip">Expand/Unzip/Unjar</a></h2>
   <h3>Description</h3>
  
  
  

Mime
View raw message