Package com.microstrategy.web.app.utils
Class ClosureCompilerRunner
- java.lang.Object
 - 
- com.google.javascript.jscomp.AbstractCommandLineRunner<com.google.javascript.jscomp.Compiler,com.google.javascript.jscomp.CompilerOptions>
 - 
- com.google.javascript.jscomp.CommandLineRunner
 - 
- com.microstrategy.web.app.utils.ClosureCompilerRunner
 
 
 
 
- 
public class ClosureCompilerRunner extends com.google.javascript.jscomp.CommandLineRunnerClass that wraps the Closure compiler. All configuration is done via args parameter that is structured as an array of strings [similar to command line args]. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class com.google.javascript.jscomp.AbstractCommandLineRunner
com.google.javascript.jscomp.AbstractCommandLineRunner.CommandLineConfig, com.google.javascript.jscomp.AbstractCommandLineRunner.FlagEntry<T extends java.lang.Object>, com.google.javascript.jscomp.AbstractCommandLineRunner.FlagUsageException, com.google.javascript.jscomp.AbstractCommandLineRunner.JsModuleSpec, com.google.javascript.jscomp.AbstractCommandLineRunner.JsonFileSpec, com.google.javascript.jscomp.AbstractCommandLineRunner.JsSourceType 
 - 
 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intexecute()static intrunClosureCompiler(java.lang.String[] args)static method that creates a ClosureCompilerRunner and invokes the compiler.- 
Methods inherited from class com.google.javascript.jscomp.CommandLineRunner
addWhitelistWarningsGuard, checkModuleName, createCompiler, createExterns, createOptions, findJsFiles, getDefaultExterns, hasErrors, main, prepForBundleAndAppendTo, shouldRunCompiler 
- 
Methods inherited from class com.google.javascript.jscomp.AbstractCommandLineRunner
createInputs, createInputs, createInputs, doRun, filenameToOutputStream, getBuiltinExterns, getCommandLineConfig, getCompiler, getDiagnosticGroups, getErrorPrintStream, isInTestMode, parseJsonFilesFromInputStream, removeDuplicateZipEntries, run, setExitCodeReceiver, setRunOptions, setWarningGuardOptions 
 - 
 
 - 
 
- 
- 
Method Detail
- 
runClosureCompiler
public static int runClosureCompiler(java.lang.String[] args) throws java.lang.Exceptionstatic method that creates a ClosureCompilerRunner and invokes the compiler. This helper is necessary to catch the CmdLineExceptions that may be thrown by the constructor.- Parameters:
 args-- Returns:
 - Throws:
 java.lang.Exception
 
- 
execute
public int execute()
 
 - 
 
 -