public class DelegateTask extends Object
| Constructor and Description |
|---|
DelegateTask(Executable
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClassic(String
Add a named subcommand
name that will run the specified class by invoking its
main(String[] args) method.
|
void |
addWithName(String
Add a named subcommand
name that will run the specified class by invoking its
main(String name, String[] args) method.
|
void |
execute(String
|
public DelegateTask(Executableexe, String name)
public void addClassic(Stringname, Class <?> c)
name that will run the specified class by invoking its
main(String[] args) method.
name - the subcommand that can be used to invoke this subtask
c - the class that implements the subtask
public void addWithName(Stringname, Class <?> c)
name that will run the specified class by invoking its
main(String name, String[] args) method.
name - the subcommand that can be used to invoke this subtask
c - the class that implements the subtask
public void execute(String[] args)