|
|
@@ -0,0 +1,913 @@ |
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
|
|
|
|
|
|
|
<!-- Content Stylesheet for Site --> |
|
|
|
|
|
|
|
|
|
|
|
<!-- start the processing --> |
|
|
|
<html> |
|
|
|
<head> |
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> |
|
|
|
|
|
|
|
<meta name="author" value="Adam Murdoch"> |
|
|
|
<meta name="email" value="adammurdoch@apache.org"> |
|
|
|
|
|
|
|
<title>Apache Myrmidon - User Guide</title> |
|
|
|
</head> |
|
|
|
|
|
|
|
<body bgcolor="#ffffff" text="#000000" link="#525D76"> |
|
|
|
<table border="0" width="100%" cellspacing="0"> |
|
|
|
<!-- TOP IMAGE --> |
|
|
|
<tr> |
|
|
|
<td colspan="2"> |
|
|
|
<a href="http://jakarta.apache.org"><img src="http://jakarta.apache.org/images/jakarta-logo.gif" align="left" border="0"/></a> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
<table border="0" width="100%" cellspacing="4"> |
|
|
|
<tr><td colspan="2"> |
|
|
|
<hr noshade="" size="1"/> |
|
|
|
</td></tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
<!-- LEFT SIDE NAVIGATION --> |
|
|
|
<td valign="top" nowrap="true"> |
|
|
|
<p><strong>Myrmidon</strong></p> |
|
|
|
<ul> |
|
|
|
<li> <a href="./index.html">Introduction</a> |
|
|
|
</li> |
|
|
|
<li> <a href="./user.html">User Guide</a> |
|
|
|
</li> |
|
|
|
<li> <a href="./todo.html">Get Involved</a> |
|
|
|
</li> |
|
|
|
<li> <a href="./todo.html#Todo List">Todo List</a> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</td> |
|
|
|
<td align="left" valign="top"> |
|
|
|
<table border="0" cellspacing="0" cellpadding="2" width="100%"> |
|
|
|
<tr><td bgcolor="#525D76"> |
|
|
|
<font color="#ffffff" face="arial,helvetica,sanserif"> |
|
|
|
<a name="Building Myrmidon"><strong>Building Myrmidon</strong></a> |
|
|
|
</font> |
|
|
|
</td></tr> |
|
|
|
<tr><td> |
|
|
|
<blockquote> |
|
|
|
<p> |
|
|
|
First, you will need to fetch the Myrmidon source from CVS. The source |
|
|
|
can be source in the <code>proposal/myrmidon</code> directory of the |
|
|
|
Ant source tree. You should check out the <code>jakarta-ant</code> CVS |
|
|
|
module, as described |
|
|
|
<a href="http://jakarta.apache.org/site/cvsindex.html">here</a>. |
|
|
|
</p> |
|
|
|
<p> |
|
|
|
To build Myrmidon, use the <code>build.xml</code> build script. You will need |
|
|
|
to use Ant 1.4.1 or later. The default target builds the Myrmidon distribution |
|
|
|
into the <code>dist</code> directory. The distribution is a ready-to-run |
|
|
|
installation of Myrmidon. |
|
|
|
</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="Running Myrmidon"><strong>Running Myrmidon</strong></a> |
|
|
|
</font> |
|
|
|
</td></tr> |
|
|
|
<tr><td> |
|
|
|
<blockquote> |
|
|
|
<p> |
|
|
|
To run Myrmidon, use one of the following methods: |
|
|
|
</p> |
|
|
|
<table border="0" cellspacing="0" cellpadding="2" width="100%"> |
|
|
|
<tr><td bgcolor="#828DA6"> |
|
|
|
<font color="#ffffff" face="arial,helvetica,sanserif"> |
|
|
|
<a name="Launcher Script"><strong>Launcher Script</strong></a> |
|
|
|
</font> |
|
|
|
</td></tr> |
|
|
|
<tr><td> |
|
|
|
<blockquote> |
|
|
|
<p> |
|
|
|
On Windows and Unix platforms, you can use the <code>ant</code> script |
|
|
|
in the distribution's <code>bin</code> directory. The following environment |
|
|
|
variables can be used, but are not required (except on Windows 9x - see below). |
|
|
|
</p> |
|
|
|
<p> |
|
|
|
|
|
|
|
</p> |
|
|
|
<table> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Variable |
|
|
|
</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"> |
|
|
|
JAVA_HOME |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The directory that the JDK is installed in. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
JAVACMD |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The command to use to start the JVM. Defaults to <code>java</code>. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
ANT_HOME |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
|
|
|
|
The directory containing the Myrmidon distribution. This must be |
|
|
|
set when running on Windows 95, 98 or Me. |
|
|
|
|
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</blockquote> |
|
|
|
</td></tr> |
|
|
|
</table> |
|
|
|
<table border="0" cellspacing="0" cellpadding="2" width="100%"> |
|
|
|
<tr><td bgcolor="#828DA6"> |
|
|
|
<font color="#ffffff" face="arial,helvetica,sanserif"> |
|
|
|
<a name="Executable Jar File"><strong>Executable Jar File</strong></a> |
|
|
|
</font> |
|
|
|
</td></tr> |
|
|
|
<tr><td> |
|
|
|
<blockquote> |
|
|
|
<p> |
|
|
|
The Myrmidon distribution includes an executable Jar file, which can be used |
|
|
|
to run Myrmidon. Use the following command: |
|
|
|
</p> |
|
|
|
<pre> |
|
|
|
prompt> <i>java</i> -jar <i>ant-home</i>/bin/myrmidon-launcher.jar <i>options</i> |
|
|
|
</pre> |
|
|
|
</blockquote> |
|
|
|
</td></tr> |
|
|
|
</table> |
|
|
|
<p>When started, Myrmidon looks for a project file called <code>build.ant</code> |
|
|
|
in the current directory. A different project file can be specified using the |
|
|
|
<code>-f</code> command-line option. Myrmidon executes the targets given on |
|
|
|
the command-line, or the default target if none is given. For example, the |
|
|
|
following executes the targets <code>clean</code> and <code>build</code> from |
|
|
|
the project file <code>my-project.xml</code>:</p> |
|
|
|
<pre> |
|
|
|
prompt> ant -f my-project.xml clean build |
|
|
|
</pre> |
|
|
|
<p> |
|
|
|
Run Myrmidon with the <code>-h</code> command-line option for a list of |
|
|
|
the command-line options that are available. |
|
|
|
</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="Project File"><strong>Project File</strong></a> |
|
|
|
</font> |
|
|
|
</td></tr> |
|
|
|
<tr><td> |
|
|
|
<blockquote> |
|
|
|
<p> |
|
|
|
The project file format is very similar to that of Ant 1. The root element of |
|
|
|
the project file must be a <code><project></code> element. It can |
|
|
|
take the following attributes: |
|
|
|
</p> |
|
|
|
<table> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Attribute |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Description |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Default Value |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
name |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The project name. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The base-name of the project file, with the extension removed. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
basedir |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The base directory for the project. The base directory is used |
|
|
|
to resolve all relative file names used in the project file. |
|
|
|
|
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The directory containing the project file. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
default |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The name of the default target. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
<code>main</code> |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
version |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The project file version that the project is written for. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
None, must be <code>2.0</code> |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
<p> |
|
|
|
A <code><project></code> element can contain the following elements, |
|
|
|
in the order given below: |
|
|
|
</p> |
|
|
|
<ul> |
|
|
|
<li><a href="#Project References"><code><projectref></code></a></li> |
|
|
|
<li><a href="#Library Imports"><code><import></code></a></li> |
|
|
|
<li><a href="#Implicit Tasks">Implicit tasks</a></li> |
|
|
|
<li><a href="#Targets"><code><target></code></a></li> |
|
|
|
</ul> |
|
|
|
<table border="0" cellspacing="0" cellpadding="2" width="100%"> |
|
|
|
<tr><td bgcolor="#828DA6"> |
|
|
|
<font color="#ffffff" face="arial,helvetica,sanserif"> |
|
|
|
<a name="Project References"><strong>Project References</strong></a> |
|
|
|
</font> |
|
|
|
</td></tr> |
|
|
|
<tr><td> |
|
|
|
<blockquote> |
|
|
|
<p>Project references allow the project to import, or reference, other projects. |
|
|
|
A <code><projectref></code> element takes the following attributes:</p> |
|
|
|
<table> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Attribute |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Description |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Default Value |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
name |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The name to use to identify the referenced project. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Required |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
location |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The path to the project file to reference. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Required |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
<p> |
|
|
|
The targets of a referenced project can be used in the <code>depends</code> list |
|
|
|
of a target in the referencing project, using the following syntax: |
|
|
|
<code><i>project-name</i>-><i>target-name</i></code>. Here is a simple example:</p> |
|
|
|
<div align="left"> |
|
|
|
<table cellspacing="4" cellpadding="0" border="0"> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#ffffff"><pre> |
|
|
|
|
|
|
|
<project version="2.0"> |
|
|
|
<!-- Reference another project --> |
|
|
|
<projectref name="subproject" location="subproject/build.xml"/> |
|
|
|
|
|
|
|
<!-- Use the "compile" target from the referenced project --> |
|
|
|
<target name="main" depends="subproject->compile"> |
|
|
|
.. do some stuff .. |
|
|
|
</target> |
|
|
|
</project> |
|
|
|
</pre></td> |
|
|
|
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</blockquote> |
|
|
|
</td></tr> |
|
|
|
</table> |
|
|
|
<table border="0" cellspacing="0" cellpadding="2" width="100%"> |
|
|
|
<tr><td bgcolor="#828DA6"> |
|
|
|
<font color="#ffffff" face="arial,helvetica,sanserif"> |
|
|
|
<a name="Library Imports"><strong>Library Imports</strong></a> |
|
|
|
</font> |
|
|
|
</td></tr> |
|
|
|
<tr><td> |
|
|
|
<blockquote> |
|
|
|
<p>Library imports allow the project to import the tasks and data-types from an |
|
|
|
antlib. An <code><import></code> element takes the following attributes:</p> |
|
|
|
<table> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Attribute |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Description |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Default Value |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
library |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The name of the library to import. The <code>ext</code> directory |
|
|
|
of the Myrmidon distribution is searched for a library file with |
|
|
|
the given name, and an <code>atl</code> extension. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Required |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
type |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The type of definition to import. Values include <code>task</code>, |
|
|
|
and <code>data-type</code>. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
None |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
name |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The name of the type to import. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
None |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
<p> |
|
|
|
If the <code>type</code> and <code>name</code> attributes are not provided, |
|
|
|
the entire contents of the antlib are imported. |
|
|
|
</p> |
|
|
|
<p>The following example import the <code><my-task></code> task from |
|
|
|
the <code>my-tasks</code> antlib.</p> |
|
|
|
<div align="left"> |
|
|
|
<table cellspacing="4" cellpadding="0" border="0"> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#ffffff"><pre> |
|
|
|
|
|
|
|
<project version="2.0"> |
|
|
|
<!-- Import task <my-task> from the 'my-tasks' antlib. --> |
|
|
|
<import library="my-tasks" type="task" name="my-task"/> |
|
|
|
|
|
|
|
<target name="main"> |
|
|
|
<my-task some-prop=".."/> |
|
|
|
</target> |
|
|
|
</project> |
|
|
|
</pre></td> |
|
|
|
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</blockquote> |
|
|
|
</td></tr> |
|
|
|
</table> |
|
|
|
<table border="0" cellspacing="0" cellpadding="2" width="100%"> |
|
|
|
<tr><td bgcolor="#828DA6"> |
|
|
|
<font color="#ffffff" face="arial,helvetica,sanserif"> |
|
|
|
<a name="Implicit Tasks"><strong>Implicit Tasks</strong></a> |
|
|
|
</font> |
|
|
|
</td></tr> |
|
|
|
<tr><td> |
|
|
|
<blockquote> |
|
|
|
<p>Implicit tasks are run before any of the project's targets are run. Any task |
|
|
|
can be used, including <code><property></code> and data-type instances. |
|
|
|
Implicit tasks can be used to initialise the project. For example:</p> |
|
|
|
<div align="left"> |
|
|
|
<table cellspacing="4" cellpadding="0" border="0"> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#ffffff"><pre> |
|
|
|
|
|
|
|
<project version="2.0"> |
|
|
|
|
|
|
|
<property name="some-property" value="some value"/> |
|
|
|
<path id="classpath"> |
|
|
|
<fileset dir="lib"/> |
|
|
|
</path> |
|
|
|
<log>Set classpath to ${classpath}</log> |
|
|
|
|
|
|
|
<target name="main"> |
|
|
|
.. do some stuff .. |
|
|
|
</target> |
|
|
|
|
|
|
|
</project> |
|
|
|
</pre></td> |
|
|
|
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</blockquote> |
|
|
|
</td></tr> |
|
|
|
</table> |
|
|
|
<table border="0" cellspacing="0" cellpadding="2" width="100%"> |
|
|
|
<tr><td bgcolor="#828DA6"> |
|
|
|
<font color="#ffffff" face="arial,helvetica,sanserif"> |
|
|
|
<a name="Targets"><strong>Targets</strong></a> |
|
|
|
</font> |
|
|
|
</td></tr> |
|
|
|
<tr><td> |
|
|
|
<blockquote> |
|
|
|
<p>Targets have the same format as in Ant 1.x, though some of the behaviour |
|
|
|
is different. A <code><target></code> element takes the following |
|
|
|
attributes:</p> |
|
|
|
<table> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Attribute |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Description |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#039acc" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Default Value |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
name |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
The name of the target. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Required |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
depends |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
A comma-separated list of targets that this target depends on. |
|
|
|
This list can contain targets from referenced projects. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
None |
|
|
|
</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"> |
|
|
|
Only execute this target if the specified property is set, and not |
|
|
|
equal to <code>false</code>. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
None |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
unless |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
Do not execute this target if the specified property is set, and not |
|
|
|
equal to <code>false</code>. |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
<td bgcolor="#a0ddf0" colspan="" rowspan="" |
|
|
|
valign="top" align="left"> |
|
|
|
<font color="#000000" size="-1" face="arial,helvetica,sanserif"> |
|
|
|
None |
|
|
|
</font> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</blockquote> |
|
|
|
</td></tr> |
|
|
|
</table> |
|
|
|
</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="Tasks"><strong>Tasks</strong></a> |
|
|
|
</font> |
|
|
|
</td></tr> |
|
|
|
<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>. |
|
|
|
</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> |
|
|
|
</blockquote> |
|
|
|
</td></tr> |
|
|
|
</table> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
|
|
|
|
<!-- FOOTER --> |
|
|
|
<tr><td colspan="2"> |
|
|
|
<hr noshade="" size="1"/> |
|
|
|
</td></tr> |
|
|
|
<tr><td colspan="2"> |
|
|
|
<div align="center"><font color="#525D76" size="-1"><em> |
|
|
|
Copyright © 2000-2002, Apache Software Foundation |
|
|
|
</em></font></div> |
|
|
|
</td></tr> |
|
|
|
</table> |
|
|
|
</body> |
|
|
|
</html> |
|
|
|
<!-- end the processing --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|