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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.