Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle によって変換されたページ (->オリジナル) /