Adding new targets to the Ant build process

The Ant conductor extension point is used to make new targets available to the Ant processing pipeline. This may be done as part of creating a new transform, extending pre-processing, or simply to provide Ant targets for the use of other plug-ins.

Add Ant import to main Ant build file.

Remember: The extension is deprecated. Use instead.


To extend Ant processing, first place your extensions in an Ant project file within your plug-in, such as myAntStuff.xml. Next, create a small wrapper file myAntStuffWrapper.xml in the same directory:

<dummy> <import file="myAntStuff.xml"/> </dummy>

Then create the following feature:

<plugin id="com.example.ant">
  <feature extension="" file="myAntStuffWrapper.xml"/>

When the plug-in is integrated, the imports from myAntStuffWrapper.xml will be copied into build.xml (using the correct path). This makes targets in myAntStuff.xml available to any other processing.