|
|
@@ -212,7 +212,10 @@ |
|
|
|
</a></li> |
|
|
|
<li><a href="#adding-external-tasks"> |
|
|
|
How do I add an external task that I've written to the |
|
|
|
page "External Tools and Task"? |
|
|
|
page "External Tools and Tasks"? |
|
|
|
</a></li> |
|
|
|
<li><a href="#create-extensions"> |
|
|
|
How do I create new tasks? |
|
|
|
</a></li> |
|
|
|
<li><a href="#passing-cli-args"> |
|
|
|
How do I pass parameters from the command line to my |
|
|
@@ -646,7 +649,7 @@ |
|
|
|
<p class="faq"> |
|
|
|
<a name="adding-external-tasks"></a> |
|
|
|
How do I add an external task that I've written to the |
|
|
|
page "External Tools and Task"? |
|
|
|
page "External Tools and Tasks"? |
|
|
|
</p> |
|
|
|
<p>Join and post a message to the dev or user mailing |
|
|
|
list (one list is enough), including the following |
|
|
@@ -673,6 +676,18 @@ |
|
|
|
The procedure to add it is the same. The file to patch is <a href="http://cvs.apache.org/viewcvs.cgi/~checkout~/ant/xdocs/projects.xml">this</a> |
|
|
|
document. The syntax of that file is the same.</p> |
|
|
|
<p class="faq"> |
|
|
|
<a name="create-extensions"></a> |
|
|
|
How do I create new tasks? |
|
|
|
</p> |
|
|
|
<p>Apart from a lot of information on using Ant, the |
|
|
|
<a href="manual/index.html">Manual</a> also contains information |
|
|
|
on how to extend Ant with new tasks. This information |
|
|
|
can be found under "Developing with Ant".</p> |
|
|
|
<p>Chances are that someone else already created the task you |
|
|
|
want to create, it may be wise to see |
|
|
|
<a href="external.html">External Tools and Tasks</a> and |
|
|
|
<a href="projects.html">Related Projects</a> first.</p> |
|
|
|
<p class="faq"> |
|
|
|
<a name="passing-cli-args"></a> |
|
|
|
How do I pass parameters from the command line to my |
|
|
|
build file? |
|
|
@@ -869,7 +884,7 @@ shell-prompt> m4 foo.m4 > foo |
|
|
|
</pre> |
|
|
|
<p>Note: <code><antcall></code> tasks do <em>not</em> pass |
|
|
|
property changes back up to the environment they were called |
|
|
|
from, so you would'nt be able to, for example, set a |
|
|
|
from, so you wouldn't be able to, for example, set a |
|
|
|
<code>result</code> property in the <code>cond-if-3</code> target, |
|
|
|
then do |
|
|
|
<code><echo message="result is ${result}"/></code> |
|
|
@@ -1108,7 +1123,7 @@ shell-prompt> m4 foo.m4 > foo |
|
|
|
<code>pathelement</code> or <code>classpath refid</code>. |
|
|
|
</p> |
|
|
|
<p>When <code>ant</code> loads properties from an external |
|
|
|
file it dosn't touch the value of properties, trailing blanks |
|
|
|
file it doesn't touch the value of properties, trailing blanks |
|
|
|
will not be trimmed for example.</p> |
|
|
|
<p>If the value represents a file path, like a jar needed to |
|
|
|
compile, the task which requires the value, javac for example |
|
|
|