27.3. Guidelines for Ant Target Authors

The primary mechanism for extending the functionality of Java-based builds with abuild is by writing hook targets (see Section 19.1, “Ant Hooks”). There are also examples of creating hooks in this document (Section 19.2, “Java Code Generator Example”). A build item hook file must be called ant-hooks.xml. It is also possible to declare ant hooks files in plugins. The plugin ant hooks file must be called plugin-ant.xml.

Here are some things to keep in mind when writing hook targets: