wro4j is a project that will help you to easily improve your Web application page loading time. It can help you to keep your static resources (JavaScript and CSS) well organized, merge and minify them at run-time (using a simple filter) or build-time (using a Maven plugin), and has several features you may find useful when dealing with Web resources.

http://code.google.com/p/wro4j/

Code samples:

PHP Code: 
Resource resource Resource.valueOf("script.coffee"ResourceType.JS);
Reader reader = new FileReader("path/to/script.coffee");
Writer writer = new FileWriter("path/to/script.js");

//Transforming a coffee script file into a javascript file
new CoffeeScriptProcessor().process(resourcereaderwriter);

//Using UglifyJs 
new UglifyJsProcessor().process(resourcereaderwriter);

//Using BeautifyJs 
new BeautifyJsProcessor().process(resourcereaderwriter);

//Using Less 
new LessCssProcessor().process(resourcereaderwriter);

//Using Sass 
new SassCssProcessor().process(resourcereaderwriter); 
Daniel Reviewed by Daniel on . wro4j wro4j is a project that will help you to easily improve your Web application page loading time. It can help you to keep your static resources (JavaScript and CSS) well organized, merge and minify them at run-time (using a simple filter) or build-time (using a Maven plugin), and has several features you may find useful when dealing with Web resources. http://code.google.com/p/wro4j/ Code samples: Resource resource = Resource.valueOf("script.coffee", ResourceType.JS); Reader reader = Rating: 5