Tag Archives: closure

Using the Google Closure Compiler in Java

I recently had a chance to try out Google’s closure compiler. The closure compiler is similar to the YUI compressor except that along with minimizing it may rewrite the JavaScript. If you want to understand more about what it does start at the overview documentation and then go from there.

What I needed was a way to use the closure compiler in an Ant task. The Ant task that comes with the library is good but there wasn’t a way for me to integrate it into an existing system that wasn’t going to change. After looking around for some example code and not finding any I went into the library’s Ant task and figured out how to wire it all up myself.

Continue reading