Class SubAnt

java.lang.Object
All Implemented Interfaces:
Cloneable

public class SubAnt extends Task
Calls a given target for all defined sub-builds. This is an extension of ant for bulk project execution.

Use with directories

subant can be used with directory sets to execute a build from different directories. 2 different options are offered

  • run the same build file /somepath/otherpath/mybuild.xml with different base directories use the genericantfile attribute
  • if you want to run directory1/build.xml, directory2/build.xml, .... use the antfile attribute. The base directory does not get set by the subant task in this case, because you can specify it in each build file.
Since:
Ant1.6