Package com.google.gwt.util.tools
Class ToolBase
java.lang.Object
com.google.gwt.util.tools.ToolBase
- Direct Known Subclasses:
com.google.gwt.dev.ArgProcessorBase
A base class for a GWT related command-line application. To use this:
- Derive a class for this class.
- In your constructor, call
registerHandler(ArgHandler)
repeatedly to register particular command line arguments and options. - 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); }
- Create launch config whose main class is MyShell.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Log deprecation warning on old JREs.protected String
protected String
getName()
protected void
protected void
printHelp
(boolean includeUndocumented) protected boolean
processArgs
(String... args) protected void
registerHandler
(ArgHandler handler)
-
Constructor Details
-
ToolBase
public ToolBase()
-
-
Method Details
-
checkJdkVersion
protected void checkJdkVersion()Log deprecation warning on old JREs. -
getDescription
-
getName
-
printHelp
protected void printHelp() -
printHelp
protected void printHelp(boolean includeUndocumented) -
processArgs
-
registerHandler
-