From a1a8c3c21c6ae9450a3f3b463b268f221b6bdf7f Mon Sep 17 00:00:00 2001
From: Peter Reilly blocks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277837 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/CoreTasks/ant.html | 74 +++++++++++++-------------
docs/manual/CoreTasks/antcall.html | 34 ++++++------
docs/manual/CoreTasks/apt.html | 61 +++++++++++----------
docs/manual/CoreTasks/available.html | 26 +++++----
docs/manual/CoreTasks/basename.html | 15 ++++--
docs/manual/CoreTasks/buildnumber.html | 8 ++-
docs/manual/CoreTasks/checksum.html | 22 ++++----
docs/manual/CoreTasks/chmod.html | 2 +-
docs/manual/CoreTasks/pack.html | 12 ++---
docs/manual/CoreTasks/unpack.html | 24 ++++-----
10 files changed, 148 insertions(+), 130 deletions(-)
diff --git a/docs/manual/CoreTasks/ant.html b/docs/manual/CoreTasks/ant.html
index 2cb867eac..eaf7de645 100644
--- a/docs/manual/CoreTasks/ant.html
+++ b/docs/manual/CoreTasks/ant.html
@@ -198,72 +198,72 @@ details:
- <ant antfile="subproject/subbuild.xml" dir="subproject" target="compile"/> ++<ant antfile="subproject/subbuild.xml" + dir="subproject" target="compile"/> - <ant dir="subproject"/> +<ant dir="subproject"/> - <ant antfile="subproject/property_based_subbuild.xml"> - <property name="param1" value="version 1.x"/> - <property file="config/subproject/default.properties"/> - </ant> - - <ant inheritAll="false" antfile="subproject/subbuild.xml"> - <property name="output.type" value="html"/> - </ant> -+<ant antfile="subproject/property_based_subbuild.xml"> + <property name="param1" value="version 1.x"/> + <property file="config/subproject/default.properties"/> +</ant> +<ant inheritAll="false" antfile="subproject/subbuild.xml"> + <property name="output.type" value="html"/> +</ant> +
The build file of the calling project defines some
<path> elements like this:
- <path id="path1"> ++<path id="path1"> ... - </path> - <path id="path2"> +</path> +<path id="path2"> ... - </path> -+</path> +
and the called build file (subbuild.xml) also defines
a <path> with the id path1, but
path2 is not defined:
- <ant antfile="subbuild.xml" inheritrefs="true"/> -+
+<ant antfile="subbuild.xml" inheritrefs="true"/> +
will not override subbuild's definition of
path1, but make the parent's definition of
path2 available in the subbuild.
- <ant antfile="subbuild.xml"/> -+
+<ant antfile="subbuild.xml"/> +
as well as
-- <ant antfile="subbuild.xml" inheritrefs="false"/> -+
+<ant antfile="subbuild.xml" inheritrefs="false"/> +
will neither override path1 nor copy
path2.
- <ant antfile="subbuild.xml" inheritrefs="false"> - <reference refid="path1"/> - </ant> -+
+<ant antfile="subbuild.xml" inheritrefs="false"> + <reference refid="path1"/> +</ant> +
will override subbuild's definition of
path1.
- <ant antfile="subbuild.xml" inheritrefs="false"> - <reference refid="path1" torefid="path2"/> - </ant> -+
+<ant antfile="subbuild.xml" inheritrefs="false"> + <reference refid="path1" torefid="path2"/> +</ant> +
will copy the parent's definition of path1 into the
new project using the id path2.
since Ant 1.6.3.
- <target name="default">
- <antcall target="doSomethingElse">
- <param name="param1" value="value"/>
- </antcall>
- </target>
-
- <target name="doSomethingElse">
- <echo message="param1=${param1}"/>
- </target>
-
+
+<target name="default">
+ <antcall target="doSomethingElse">
+ <param name="param1" value="value"/>
+ </antcall>
+</target>
+
+<target name="doSomethingElse">
+ <echo message="param1=${param1}"/>
+</target>
+
Will run the target 'doSomethingElse' and echo 'param1=value'.
-- <antcall ... > - <reference refid="path1" torefid="path2"/> - </antcall> -+
+<antcall ... > + <reference refid="path1" torefid="path2"/> +</antcall> +
will copy the parent's definition of path1 into the
new project using the id path2.
path2.
Reserved.