From a965b11a6e68dbb8906dff97b05780803f3d0589 Mon Sep 17 00:00:00 2001
From: Stefan Bodewig
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.dir | -the directory to use as a basedir for the new Ant project. | -Yes | +the directory to use as a basedir for the new Ant project + Defaults to the current directory. | +No |
target | @@ -622,11 +625,16 @@ These properties will override the properties that are set in the new project.
-+-
<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> +