Can you run the YUICompressor from within a Java application?
I am new to Java programming so the answer may be obvious but it has alluded me.
Can you run the YUICompressor from within a Java application?
I am new to Java programming so the answer may be obvious but it has alluded me.
It's written in java (+ rhino); It has api; Its tarball probably contains that api.
Look at it, add the jar into your project, employ it.
Include the jar in your application and then look at the main function in ./com/yahoo/platform/yui/compressor/YUICompressor.java in the src directory of the zip file you download.
You can follow that to figure out the semantics of using the JavaScriptCompressor class within your own code.
It looks very straight forward.