blob: 1f295f49a1eccd23ed7618384ee3cbe47cee22ef [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>Adding new Ant tasks and types</title>
<meta name="keyword" content="ant">
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script>
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>Adding new Ant tasks and types</H1>
<p>Add new Ant tasks and types through the Ant preferences page. These tasks and
types will be available for buildfiles 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
<a href="http://ant.apache.org/index.html" target="_blank">http://ant.apache.org</a>).
</p>
<p>To add a new task or type:</p>
<ol>
<li>Open the
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.ant.ui.AntRuntimePreferencePage)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png">
<b>Ant &gt; Runtime</b></a> preference page.</li>
<li>Click the <b>Tasks</b> tab or the <b>Types</b> tab.</li>
<li>Click <b>Add Task</b> or <b>Add Type</b>.</li>
<li>Provide a name and class for the task or type.</li>
<li>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).</li>
</ol>
<p><img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br>
<a href="../concepts/concepts-antsupport.htm">Ant Support</a><br>
<a href="../concepts/concepts-22.htm">Builds</a><br>
<a href="../concepts/concepts-exttools.htm">External tools</a>
</p>
<p><img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br>
<a href="../tasks/tasks-exttools-running.htm">Running external tools</a><br>
<a href="../tasks/tasks-ant-classpath.htm">Modifying the Ant classpath</a><br>
<a href="../tasks/tasks-ant-version.htm">Using a different version of Ant</a>
</p>
</BODY>
</HTML>