|
AntDescriptionRuns Ant on a supplied buildfile. This can be used to build subprojects. in the supplied directory (dir attribute) is used.If no target attribute is supplied, the default target of the new project is used. 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 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. References to data types can also be passed to the new project, but by default they are not. If you set the inheritrefs attribute to true, all references will be copied, but they will not override references defined in the new project. Nested <reference> elements can also be used to copy references from the calling project to the new project, optionally under a different id. References taken from nested elements will override existing references in the new project. Inherited references are not available to top level tasks of the child project. Parameters
Parameters specified as nested elementspropertySee the description of the property
task. Note that the referenceUsed to chose references that shall be copied into the new project, optionally changing their id.
Basedir of the new projectThe basedir value of the new project is affected by the two attributes dir and inheritall, see the following table for details:
Examples<ant dir="subproject"/> <property name="param1" value="version 1.x"/> <property file="config/subproject/default.properties"/> </ant> <property name="output.type" value="html"/> </ant> The build file of the calling project defines some
<path id="path1"> ... </path> <path id="path2"> ... </path>a <path> with the id path1 , but
path2 is not defined:
will not override as well as will neither override <reference refid="path1"/> </ant> will override <reference refid="path1" torefid="path2"/> </ant> will copy the parent's definition of Copyright © 2000-2002 Apache Software Foundation. All rights Reserved. |