From a965b11a6e68dbb8906dff97b05780803f3d0589 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 20 Jul 2000 12:50:33 +0000 Subject: [PATCH] Updated documentation of Ant task. Submitted by: Glenn McAllister git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267807 13f79535-47bb-0310-9956-ffa450edef68 --- docs/index.html | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/docs/index.html b/docs/index.html index 3638e4b04..bcb4a42a1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -591,7 +591,9 @@ in the supplied directory (dir attribute) is used.

used.

The properties of the current project will be available in the new project. These properties will override the properties that are set in the new project. -(See also the properties task).

+(See also the properties task).  You can set properties +in the new project from the old project by using nested property tags. This +allows you to parameterize your subprojects.

Parameters:

@@ -606,8 +608,9 @@ These properties will override the properties that are set in the new project. - - +     +     @@ -622,11 +625,16 @@ These properties will override the properties that are set in the new project.
dirthe directory to use as a basedir for the new Ant project.Yesthe directory to use as a basedir for the new Ant project + Defaults to the current directory.No
target

Examples

-
-

<ant antfile="subproject/subbuild.xml" dir="subproject" - target="compile" />

-

<ant dir="subproject" />

-
+
+  <ant antfile="subproject/subbuild.xml" dir="subproject" target="compile" />
+
+  <ant dir="subproject" />
+
+  <ant antfile="subproject/property_based_subbuild.xml">
+    <property name="param1" value="version 1.x" />
+    <property file="config/subproject/default.properties" />
+  </ant>
+

Available

Description