javascript - What are the standard externs provided by the command line Google Closure, and how do I get them through the Java interface? -



javascript - What are the standard externs provided by the command line Google Closure, and how do I get them through the Java interface? -

i'm using code:

com.google.javascript.jscomp.compiler.setlogginglevel(level.off); com.google.javascript.jscomp.compiler compiler = new com.google.javascript.jscomp.compiler(); compileroptions options = new compileroptions(); compilationlevel.advanced_optimizations.setoptionsforcompilationlevel(options); warninglevel.verbose.setoptionsforwarninglevel(options); list<jssourcefile> externs = new arraylist<jssourcefile>(); externs.add(jssourcefile.fromfile(extern_src)); list<jssourcefile> primary = new arraylist<jssourcefile>(); primary.add(jssourcefile.fromfile(tmp)); compiler.compile(externs, primary, options);

however, lots of errors this:

error message: jsc_undefined_variable. variable array undefined error message: jsc_undefined_variable. variable typeerror undefined error message: jsc_undefined_variable. variable object undefined error message: jsc_undefined_variable. variable arguments undefined error message: jsc_undefined_variable. variable number undefined error message: jsc_undefined_variable. variable math undefined

obviously, these not correct: things object , arguments etc core part of language. can prepare this?

did see michael bolin blog regarding using java api?

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

java javascript google-closure-compiler google-closure

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -