FileDocCategorySizeDatePackage
DispatchTask.javaAPI DocApache Ant 1.701925Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.dispatch

DispatchTask

public abstract class DispatchTask extends org.apache.tools.ant.Task implements Dispatchable
Tasks extending this class may contain multiple actions. The method that is invoked for execution depends upon the value of the action attribute of the task.
Example:
<mytask action="list"/> will invoke the method with the signature public void list() in mytask's class. If the action attribute is not defined in the task or is empty, the execute() method will be called.

Fields Summary
private String
action
Constructors Summary
Methods Summary
public java.lang.StringgetAction()
Get the action.

return
the action.

        return action;
    
public java.lang.StringgetActionParameterName()
Get the action parameter name.

return
the String "action" by default (can be overridden).

        return "action";
    
public voidsetAction(java.lang.String action)
Set the action.

param
action the method name.

        this.action = action;