Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more

Using the Compiler's Java API

Teppei Sato edited this page Feb 25, 2017 · 3 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
You can’t perform that action at this time.