FileDocCategorySizeDatePackage
Taskdef.javaAPI DocApache Ant 1.701876Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs

Taskdef

public class Taskdef extends Typedef
Adds a task definition to the current project, such that this new task can be used in the current project. Two attributes are needed, the name that identifies this task uniquely, and the full name of the class (including the packages) that implements this task.

You can also define a group of tasks at once using the file or resource attributes. These attributes point to files in the format of Java property files. Each line defines a single task in the format:

taskname=fully.qualified.java.classname
since
Ant 1.1
ant.task
category="internal"

Fields Summary
Constructors Summary
public Taskdef()
Default constructor. Creates a new Taskdef instance. This sets the adapter and the adaptto classes to TaskAdapter and Task.

        setAdapterClass(TaskAdapter.class);
        setAdaptToClass(Task.class);
    
Methods Summary