Adding new Ant tasks and types

Add new Ant tasks and types through the Ant preferences page. These tasks and types will be available for build files running in the Workbench without, having to use taskdef or typedef in the script declaration (For more on taskdef or typedef see the Ant documentation in http://jakarta.apache.org/ant).

To add a new task or type:

  1. Click Window > Preferences
  2. Expand External Tools and select Ant.
  3. Click the Tasks tab or the Types tab.
  4. Click Add Task or Add Type.
  5. Provide a name and class for the task or type.
  6. Select the library where the task or type is declared. If the library is not present on the list, you must add it to the Ant classpath (see the Related task link below).

Related concepts
Ant Support
Builds
External tools

Related tasks
Running external tools
Modifying the Ant classpath
Using a different version of Ant

 
Copyright IBM Corporation and others 2000, 2002