From bfb2c6ca314245f54cd45657730f75125681fcbc Mon Sep 17 00:00:00 2001 From: Jacobus Martinus Kruithof Date: Mon, 13 Dec 2004 22:51:19 +0000 Subject: [PATCH] PR: 32640 Updated FAQ with a reference to the manual for developing new tasks (and some more). Bonus: some typo fixes. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277195 13f79535-47bb-0310-9956-ffa450edef68 --- docs/faq.html | 23 +++++++++++++++++++---- xdocs/faq.xml | 22 +++++++++++++++++++--- 2 files changed, 38 insertions(+), 7 deletions(-) diff --git a/docs/faq.html b/docs/faq.html index 0a98d7f58..52b2b7dda 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -212,7 +212,10 @@
  • How do I add an external task that I've written to the - page "External Tools and Task"? + page "External Tools and Tasks"? +
  • +
  • + How do I create new tasks?
  • How do I pass parameters from the command line to my @@ -646,7 +649,7 @@

    How do I add an external task that I've written to the - page "External Tools and Task"? + page "External Tools and Tasks"?

    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 this document. The syntax of that file is the same.

    + + How do I create new tasks? +

    +

    Apart from a lot of information on using Ant, the + Manual also contains information + on how to extend Ant with new tasks. This information + can be found under "Developing with Ant".

    +

    Chances are that someone else already created the task you + want to create, it may be wise to see + External Tools and Tasks and + Related Projects first.

    +

    How do I pass parameters from the command line to my build file? @@ -869,7 +884,7 @@ shell-prompt> m4 foo.m4 > foo

    Note: <antcall> tasks do not 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 result property in the cond-if-3 target, then do <echo message="result is ${result}"/> @@ -1108,7 +1123,7 @@ shell-prompt> m4 foo.m4 > foo pathelement or classpath refid.

    When ant 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.

    If the value represents a file path, like a jar needed to compile, the task which requires the value, javac for example diff --git a/xdocs/faq.xml b/xdocs/faq.xml index 7149f092d..210e435e9 100644 --- a/xdocs/faq.xml +++ b/xdocs/faq.xml @@ -247,7 +247,7 @@ How do I add an external task that I've written to the - page "External Tools and Task"? + page "External Tools and Tasks"?

    Join and post a message to the dev or user mailing @@ -279,6 +279,22 @@ The procedure to add it is the same. The file to patch is this document. The syntax of that file is the same.

    + + + + + + How do I create new tasks? + +

    Apart from a lot of information on using Ant, the + Manual also contains information + on how to extend Ant with new tasks. This information + can be found under "Developing with Ant".

    + +

    Chances are that someone else already created the task you + want to create, it may be wise to see + External Tools and Tasks and + Related Projects first.

    @@ -473,7 +489,7 @@ shell-prompt> m4 foo.m4 > foo

    Note: <antcall> tasks do not 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 result property in the cond-if-3 target, then do <echo message="result is ${result}"/> @@ -770,7 +786,7 @@ shell-prompt> m4 foo.m4 > foo

    When ant 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.

    If the value represents a file path, like a jar needed to