Creating a Custom Ant Task

See Also 

You can create Ant tasks to use in your build scripts. An easy way to start is by using the Custom Task template provided by the IDE.
tip You may need to mount ant.jar in the IDE's Filesystems window to compile and use some custom tasks. The Ant JAR is in ant/lib/ant.jar in your IDE's installation directory.

To create a new Ant task:

  1. Choose File and choose New from the main window.
  2. Expand the Ant Build Scripts node and select Custom Task. Then follow the steps in the wizard.

You can use the Ant Documentation module to view Javadoc documentation for Ant classes commonly used for writing custom tasks and to enable code completion for these classes. The module also integrates the Ant manual with the IDE. See Installing Ant Documentation for more information.

tip If you define custom tasks and then run a project using them at least once, the Ant module recognizes their XML structure and enables you to edit them in the Filesystems window just like standard tasks. The same applies to custom data types.

For more information on writing Ant tasks, see Using Ant in the Ant 1.6.1 Manual.

See Also
Ant Classpath and Custom Ant Tasks
Optional Ant Tasks

Legal Notices