You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

taskdef.html 968 B

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