Skip to content

Using the Compiler's Java API

John Lenz edited this page May 30, 2020 · 5 revisions

Calling the compiler from Java to have more control

Details

  • Setting default options

    CompilationLevel.SIMPLE_OPTIMIZATIONS.setOptionsForCompilationLevel(options); WarningLevel.VERBOSE.setOptionsForWarningLevel(options);

  • Pulling in the default externs

    See CommandLineRunner.java getDefaultExterns

References

http://blog.bolinfest.com/2009/11/calling-closure-compiler-from-java.html

Clone this wiki locally