|
|
@@ -613,153 +613,59 @@ attributes:</p> |
|
|
|
<tr><td> |
|
|
|
<blockquote> |
|
|
|
<p> |
|
|
|
The following table lists some of the current set of tasks. You can find |
|
|
|
example usages of these tasks in the sample project file |
|
|
|
<code>src/make/sample.ant</code>. |
|
|
|
Listed below are some of the current set of tasks. You can find example |
|
|
|
usages of these tasks in the sample project file <code>src/make/sample.ant</code>. |
|
|
|
</p> |
|
|
|
<table> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Task |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Description |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
fail |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Causes the build to fail. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
if |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Conditionally executes a set of tasks. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
load-properties |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Loads a set of properties from a file. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
log |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Writes a log message. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
property |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Sets a property. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
try-catch |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Runs a set of tasks, with a provided error and clean-up handler. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
converter-def |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Register a type converter. These are used when configuring a task |
|
|
|
or data-type from attributes. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
type-def |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Register a task or data-type. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
import |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Register the contents of an antlib. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
<h3><code><condition></code></h3> |
|
|
|
<p>Sets a property if a particular condition is true. See |
|
|
|
<a href="#Conditions">Conditions</a> for a list of available conditions.</p> |
|
|
|
<h3><code><fail></code></h3> |
|
|
|
<p>Causes the build to fail.</p> |
|
|
|
<h3><code><if></code></h3> |
|
|
|
<p>Conditionally executes a set of tasks.</p> |
|
|
|
<h3><code><load-properties></code></h3> |
|
|
|
<p>Loads a set of properties from a file.</p> |
|
|
|
<h3><code><log></code></h3> |
|
|
|
<p>Writes a log message.</p> |
|
|
|
<h3><code><property></code></h3> |
|
|
|
<p>Sets a property.</p> |
|
|
|
<h3><code><try-catch></code></h3> |
|
|
|
<p>Runs a set of tasks, with a provided error and clean-up handler.</p> |
|
|
|
<h3><code><converter-def></code></h3> |
|
|
|
<p>Register a type converter. These are used when configuring a task |
|
|
|
or data-type from attributes.</p> |
|
|
|
<h3><code><type-def></code></h3> |
|
|
|
<p>Register a task or data-type.</p> |
|
|
|
<h3><code><import></code></h3> |
|
|
|
<p>Register the contents of an antlib.</p> |
|
|
|
</blockquote> |
|
|
|
</td></tr> |
|
|
|
</table> |
|
|
|
<table border="0" cellspacing="0" cellpadding="2" width="100%"> |
|
|
|
<tr><td bgcolor="#525D76"> |
|
|
|
<font color="#ffffff" face="arial,helvetica,sanserif"> |
|
|
|
<a name="Conditions"><strong>Conditions</strong></a> |
|
|
|
</font> |
|
|
|
</td></tr> |
|
|
|
<tr><td> |
|
|
|
<blockquote> |
|
|
|
<p>The following conditions are available </p> |
|
|
|
<h3><code><and></code></h3> |
|
|
|
<p>Evaluates a set of nested conditions, and AND them together. Evaluation is |
|
|
|
lazy. An empty <code><and></code> condition evaluates to true.</p> |
|
|
|
<h3><code><available></code></h3> |
|
|
|
<p>Tests if a particular class or resource is available.</p> |
|
|
|
<h3><code><file-test></code></h3> |
|
|
|
<p>Tests a file against a set of <a href="vfs.html#File Selectors">file selectors</a>.</p> |
|
|
|
<h3><code><is-set></code></h3> |
|
|
|
<p>Tests whether a proeprty is set, and not set to 'false'.</p> |
|
|
|
<h3><code><or></code></h3> |
|
|
|
<p>Evaluates a set of nested conditions, and OR them together. Evaluation is |
|
|
|
lazy. An empty <code><or></code> evaluates to true.</p> |
|
|
|
<h3><code><os></code></h3> |
|
|
|
<p>Tests which operating system the build is running on.</p> |
|
|
|
<h3><code><not></code></h3> |
|
|
|
<p>Negates a nested condition.</p> |
|
|
|
</blockquote> |
|
|
|
</td></tr> |
|
|
|
</table> |
|
|
|