From 2fa84738b4a2bfc1380bfbebe46c2e54921ff061 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Tue, 10 Jul 2001 13:23:29 +0000 Subject: [PATCH] InheritAll documentation update Submitted by: Craeg K Strong git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269306 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/ant.html | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) 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