Skip to content

Using the Compiler's Java API

Teppei Sato edited this page Feb 25, 2017 · 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://hyegar.com/2017/01/09/calling-google-closure/

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

Clone this wiki locally