1 | <!--
|
---|
2 | Licensed to the Apache Software Foundation (ASF) under one or more
|
---|
3 | contributor license agreements. See the NOTICE file distributed with
|
---|
4 | this work for additional information regarding copyright ownership.
|
---|
5 | The ASF licenses this file to You under the Apache License, Version 2.0
|
---|
6 | (the "License"); you may not use this file except in compliance with
|
---|
7 | the License. You may obtain a copy of the License at
|
---|
8 |
|
---|
9 | http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 |
|
---|
11 | Unless required by applicable law or agreed to in writing, software
|
---|
12 | distributed under the License is distributed on an "AS IS" BASIS,
|
---|
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
14 | See the License for the specific language governing permissions and
|
---|
15 | limitations under the License.
|
---|
16 | -->
|
---|
17 | <html>
|
---|
18 |
|
---|
19 | <head>
|
---|
20 | <meta http-equiv="Content-Language" content="en-us">
|
---|
21 | <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
---|
22 | <title>TaskDef Task</title>
|
---|
23 | </head>
|
---|
24 |
|
---|
25 | <body>
|
---|
26 |
|
---|
27 | <h2><a name="taskdef">Taskdef</a></h2>
|
---|
28 | <h3>Description</h3>
|
---|
29 | <p>Adds a task definition to the current project, such that this new task can be
|
---|
30 | used in the current project.</p>
|
---|
31 | <p>This task is a form of <a href="typedef.html">Typedef</a> with the
|
---|
32 | attributes "adapter" and "adaptto" set to the values
|
---|
33 | "org.apache.tools.ant.TaskAdapter" and "org.apache.tools.ant.Task"
|
---|
34 | respectively.
|
---|
35 | <h3>Examples</h3>
|
---|
36 | <pre> <taskdef name="myjavadoc" classname="com.mydomain.JavadocTask"/></pre>
|
---|
37 | <p>makes a task called <code>myjavadoc</code> available to Ant. The class <code>com.mydomain.JavadocTask</code>
|
---|
38 | implements the task.</p>
|
---|
39 |
|
---|
40 |
|
---|
41 | </body>
|
---|
42 | </html>
|
---|
43 |
|
---|