// Override port to auto by default.
return new String[]{"-port", "auto"};
}
});
registerHandler(new ArgHandlerLogDir(options));
registerHandler(new ArgHandlerLogLevel(options));
registerHandler(new ArgHandlerGenDir(options));
// DISABLE: ArgHandlerBindAddress.
registerHandler(new ArgHandlerCodeServerPort(options) {
@Override
public String[] getDefaultArgs() {
// Override code server port to auto by default.
return new String[]{this.getTag(), "auto"};
}
});
// DISABLE: ArgHandlerRemoteUI.
/*
* ----- Options from DevMode -------
*/
// Hard code the server.
options.setServletContainerLauncher(shell.new MyJettyLauncher());
// DISABLE: ArgHandlerStartupURLs
registerHandler(new ArgHandlerWarDir(options) {
private static final String OUT_TAG = "-out";
@Override
public String[] getTags() {
return new String[] {getTag(), OUT_TAG};
}
@Override
public int handle(String[] args, int tagIndex) {
if (OUT_TAG.equals(args[tagIndex])) {
// -out is deprecated. Print a warning message
System.err.println("The -out option is deprecated. This option will be removed in " +
"future GWT release and will throw an error if it is still used. Please use -war " +
"option instead.");
}
return super.handle(args, tagIndex);
}
});
registerHandler(new ArgHandlerDeployDir(options));
registerHandler(new ArgHandlerExtraDir(options));
registerHandler(new ArgHandlerWorkDirOptional(options));
registerHandler(new ArgHandlerSourceLevel(options));
// DISABLE: ArgHandlerModuleName
/*
* ----- Additional options from Compiler not already included -------
*/
registerHandler(new ArgHandlerScriptStyle(options));
registerHandler(new ArgHandlerEnableAssertions(options));
registerHandler(new ArgHandlerDisableAggressiveOptimization(options));
registerHandler(new ArgHandlerDisableCastChecking(options));
registerHandler(new ArgHandlerDisableClassMetadata(options));
registerHandler(new ArgHandlerDisableClusterSimilarFunctions(options));
registerHandler(new ArgHandlerDisableInlineLiteralParameters(options));
registerHandler(new ArgHandlerDisableOptimizeDataflow(options));
registerHandler(new ArgHandlerDisableOrdinalizeEnums(options));
registerHandler(new ArgHandlerDisableRemoveDuplicateFunctions(options));
registerHandler(new ArgHandlerDisableRunAsync(options));
registerHandler(new ArgHandlerDisableUpdateCheck(options));
registerHandler(new ArgHandlerDraftCompile(options));
registerHandler(new ArgHandlerMaxPermsPerPrecompile(options));
registerHandler(new ArgHandlerLocalWorkers(options));
registerHandler(new ArgHandlerNamespace(options));
registerHandler(new ArgHandlerOptimize(options));
/*
* ----- Options specific to JUnitShell -----
*/
// Override log level to set WARN by default.
registerHandler(new ArgHandlerLogLevel(options, TreeLogger.WARN));
registerHandler(new ArgHandlerRunCompiledJavascript(shell));
registerHandler(new ArgHandlerInt() {