source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/docs/manual/CoreTasks/taskdef.html@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 972 bytes
Line 
1<html>
2
3<head>
4<meta http-equiv="Content-Language" content="en-us">
5<title>TaskDef Task</title>
6<link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
7</head>
8
9<body>
10
11<h2><a name="taskdef">Taskdef</a></h2>
12<h3>Description</h3>
13 <p>Adds a task definition to the current project, such that this new task can be
14 used in the current project.</p>
15 <p>This task is a form of <a href="typedef.html">Typedef</a> with the
16 attributes "adapter" and "adaptto" set to the values
17 "org.apache.tools.ant.TaskAdapter" and "org.apache.tools.ant.Task"
18 respectively.
19<h3>Examples</h3>
20<pre> &lt;taskdef name=&quot;myjavadoc&quot; classname=&quot;com.mydomain.JavadocTask&quot;/&gt;</pre>
21<p>makes a task called <code>myjavadoc</code> available to Ant. The class <code>com.mydomain.JavadocTask</code>
22implements the task.</p>
23<hr>
24<p align="center">Copyright &copy; 2000-2004 The Apache Software Foundation. All rights
25Reserved.</p>
26
27</body>
28</html>
29
Note: See TracBrowser for help on using the repository browser.