Adding an Ant target to the pre-processing pipeline
You can add an Ant target to the pre-processing pipeline. This enables you to insert additional processing before or after the pre-processing chain or a specific step in the pre-processing operation.
About this task
You can use the
points to run a target before or after the entire pre-processing operation. In addition, there are extension
points that enable you to run an Ant target before specific pre-processing steps.
- Define and integrate the new Ant target.
Create the following plugin.xml file:
<plugin id="plugin-id"> <feature extension="extension-point" value="Ant-target"/> </plugin>
- plugin-id is the plug-in identifier.
- extension-point is a pre-processing extension point.
- Ant-target is the name of the Ant target.
- Install the plug-in.
The following plugin.xml file specifies that the
myAntTargetBeforeChunk target is always run before the
chunk step in the
<plugin id="com.example.extendchunk"> <feature extension="depend.preprocess.chunk.pre" value="myAntTargetBeforeChunk"/> </plugin>
It assumes that the myAntTargetBeforeChunk target has already been defined and integrated.