Class ToolBase

java.lang.Object
com.google.gwt.util.tools.ToolBase
Direct Known Subclasses:
com.google.gwt.dev.ArgProcessorBase

public abstract class ToolBase extends Object
A base class for a GWT related command-line application. To use this:
  1. Derive a class for this class.
  2. In your constructor, call registerHandler(ArgHandler) repeatedly to register particular command line arguments and options.
  3. Write a main that looks like this:
     public static void main(String[] args) {
      MyShell myShell = new MyShell();
      if (myShell.processArgs(args)) {
        // main program operation
      }
      System.exit(1);
     }
     
  4. Create launch config whose main class is MyShell.