Developing Ant tasks and types within Eclipse

Ant tasks and types must be loaded by an Ant classloader instead of a plug-in classloader. This can cause problems when developing and testing new tasks and types to be run in the same VM as Eclipse. To avoid these issues, it is necessary to store the tasks and types in a location that is not visible to any plug-in classloader.

The following guidelines should be followed when developing and debugging new tasks and types to be run within the same VM as Eclipse.

The org.eclipse.ant.core plugin can be used as an example of how to set up a plugin that contributes tasks within Eclipse. For development and testing of this plugin within Eclipse, an external tool builder explictly generates the tasks JAR when triggered on specific resource changes.

Also see Contributing tasks and types.