blob: 7fb077e2230fa0e3f52515e77e594d7d85fa0298 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML>
<HEAD>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="../book.css" CHARSET="ISO-8859-1" TYPE="text/css">
<TITLE>
Developing tasks and types
</TITLE>
<link rel="stylesheet" type="text/css" HREF="../book.css">
</HEAD>
<BODY BGCOLOR="#ffffff">
<h2>
Developing Ant tasks and types within Eclipse</h2>
<p>The following guidelines should be followed when developing and debugging Ant
tasks and types within Eclipse. These requirements stem from the fact that Ant
tasks and types must be loaded by the Ant classloader, rather than a plug-in
classloader, when Ant is run in the same VM as Eclipse. To avoid having the
Ant tasks and types loaded by a plug-in classloader, the tasks and types need
to be stored in a location that is not visible to any plug-in classloader. Also
see <a href="ant_contributing_task.htm">Contributing tasks and types</a>.</p>
<ul>
<li> Contributed Ant tasks or types should be defined in their own source folder
within a plug-in (i.e. separate from the source folders containing regular
plug-in classes)</li>
<li>Each source folder containing the Ant tasks and types should have its own
output location that does not overlap with the output location of the regular
plug-in classes.</li>
<li>When testing/debugging the new Ant tasks or types, the project contributing
the Ant tasks or types must be configured to <b>exclude</b> the output folders
containing the Ant tasks and types. Use the <b>Properties</b> dialog for the project to
correctly configure the <b>Plug-in Development > Runtime Classpath</b> by removing the Ant output
directories from the plug-ins classpath.</li>
</ul>
</BODY></HTML>