diff --git a/docs/manual/CoreTasks/ant.html b/docs/manual/CoreTasks/ant.html index 3e0d83807..d6bf9cf9a 100644 --- a/docs/manual/CoreTasks/ant.html +++ b/docs/manual/CoreTasks/ant.html @@ -14,11 +14,16 @@ in the supplied directory (dir attribute) is used.

If no target attribute is supplied, the default target of the new project is 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 property 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.

+

By default, all of the properties of the current project will be +available in the new project. Alternatively, you can +set the inheritAll attribute to false and only +"user" properties (i.e., those passed on the command-line) +will be passed to the new project. In either case, the set of +properties passed to the new project will override the properties that +are set in the new project (See also the property task).

+

You can also set properties in the new project from the old project by +using nested property tags. These properties are always passed regardless of the +setting of inheritAll. This allows you to parameterize your subprojects.

Parameters

@@ -48,6 +53,13 @@ allows you to parameterize your subprojects.

+ + + + +
No
inheritAllIf true, pass all properties to the new Ant + project. Defaults to true. + No

Examples

@@ -59,6 +71,10 @@ allows you to parameterize your subprojects.

<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>

Copyright © 2000,2001 Apache Software Foundation. All rights