Browse Source

update for script (partial)

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@484998 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
ce83d9e0c7
2 changed files with 52 additions and 6 deletions
  1. +36
    -1
      docs/manual/CoreTasks/conditions.html
  2. +16
    -5
      docs/manual/install.html

+ 36
- 1
docs/manual/CoreTasks/conditions.html View File

@@ -488,6 +488,15 @@ an explanation of scripts and dependencies.
<td valign="top">script language</td>
<td valign="top" align="center">Yes</td>
</tr>
<tr>
<td valign="top">manager</td>
<td valign="top">
The script engine manager to use.
See the <a href="../OptionalTasks/script.html">script</a> task
for using this attribute.
</td>
<td valign="top" align="center">No - default is "auto"</td>
</tr>
<tr>
<td valign="top">value</td>
<td valign="top">default boolean value</td>
@@ -497,8 +506,34 @@ an explanation of scripts and dependencies.
<td valign="top">src</td>
<td valign="top">filename of script source</td>
<td valign="top" align="center">No</td>
</tr>
</tr>
<tr>
<td valign="top">setbeans</td>
<td valign="top">whether to have all properties, references and targets as
global variables in the script.</td>
<td valign="top" align="center">No, default is "true".</td>
</tr>
<tr>
<td valign="top">classpath</td>
<td valign="top">
The classpath to pass into the script.
</td>
<td align="center" valign="top">No</td>
</tr>
<tr>
<td valign="top">classpathref</td>
<td valign="top">The classpath to use, given as a
<a href="../using.html#references">reference</a> to a path defined elsewhere.
<td align="center" valign="top">No</td>
</tr>
</table>
<h5>Parameters specified as nested elements</h5>
<h6>classpath</h6>
<p>
See the <a href="../OptionalTasks/script.html">script</a> task
for using this nested element.
</p>
<h5>Description</h5>
<p>
The script supports script language inline, this script has access to the
same beans as the <code>&lt;script&gt;</code> task, and to the <code>


+ 16
- 5
docs/manual/install.html View File

@@ -600,10 +600,21 @@ you need jakarta-oro 2.0.8 or later, and <a href="#commons-net">commons-net</a><
<td><a href="http://www.antlr.org/" target="_top">http://www.antlr.org/</a></td>
</tr>
<tr>
<td >bsf.jar</td>
<td>script task<br>
<strong>Note</strong>: Ant 1.6 and later require Apache BSF, not
the IBM version. I.e. you need BSF 2.3.0-rc1 or later.</td>
<td>bsf.jar</td>
<td>script task
<p>
<strong>Note</strong>: Ant 1.6 and later require Apache BSF, not
the IBM version. I.e. you need BSF 2.3.0-rc1 or later.
</p>
<p>
<strong>Note</strong>: BSF 2.4.0 is needed to use a post 1.5R3 version
of rhino's javascript.
</p>
<p>
<strong>Note</strong>: BSF 2.4.0 uses jakarata-commons-logging
so it needs the commons-logging.jar.
</p>
</td>
<td><a href="http://jakarta.apache.org/bsf/" target="_top">http://jakarta.apache.org/bsf/</a></td>
</tr>
<tr>
@@ -636,7 +647,7 @@ you need jakarta-oro 2.0.8 or later, and <a href="#commons-net">commons-net</a><
<td>js.jar</td>
<td>Javascript with script task<br>
If you use Apache BSF 2.3.0-rc1, you must use rhino 1.5R3 (later
versions of BSF work with 1.5R4 as well).</td>
versions of BSF (e.g. version 2.4.0) work with 1.5R4 and higher).</td>
<td><a href="http://www.mozilla.org/rhino/" target="_top">http://www.mozilla.org/rhino/</a></td>
</tr>
<tr>


Loading…
Cancel
Save