Class DelegateTask



  • public class DelegateTask
    extends Object
    • Method Detail

      • addClassic

        public void addClassic(String name,
                               Class<?> c)
        Add a named subcommand name that will run the specified class by invoking its main(String[] args) method.
        Parameters:
        name - the subcommand that can be used to invoke this subtask
        c - the class that implements the subtask
      • addWithName

        public void addWithName(String name,
                                Class<?> c)
        Add a named subcommand name that will run the specified class by invoking its main(String name, String[] args) method.
        Parameters:
        name - the subcommand that can be used to invoke this subtask
        c - the class that implements the subtask
      • execute

        public void execute(String[] args)