Class ClosureCompilerRunner

  • public class ClosureCompilerRunner
    Class 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
      • Nested classes/interfaces inherited from class,<T extends java.lang.Object>,,,
    • Field Summary

      • Fields inherited from class

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int execute()  
      static int runClosureCompiler​(java.lang.String[] args)
      static method that creates a ClosureCompilerRunner and invokes the compiler.
      • Methods inherited from class

        addAllowlistWarningsGuard, appendRuntimeTo, checkModuleName, createCompiler, createExterns, createOptions, findJsFiles, getDefaultExterns, getVersionText, hasErrors, main, prepForBundleAndAppendTo, shouldRunCompiler
      • Methods inherited from class

        createDefineReplacements, createInputs, createJsModules, doRun, filenameToOutputStream, getBuiltinExterns, getCommandLineConfig, getCompileMetricsRecorder, getCompiler, getDiagnosticGroups, getErrorPrintStream, isInTestMode, parseJsonFilesFromInputStream, parseModuleWrappers, run, setExitCodeReceiver, setRunOptions, setWarningGuardOptions, shouldGenerateMapPerModule
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • runClosureCompiler

        public static int runClosureCompiler​(java.lang.String[] args)
                                      throws java.lang.Exception
        static method that creates a ClosureCompilerRunner and invokes the compiler. This helper is necessary to catch the CmdLineExceptions that may be thrown by the constructor.
        args -
      • execute

        public int execute()