what is a good cross-platform css compressor?

compression, css, java, styling

Solution

Check out the Yahoo YUI compressor.

It compresses CSS as well as Javascript, and it's written in Java.

Edit: You should be using some sort of HTTP compression as well, like mod_deflate or mod_gzip.

Problem

i need to compress my css as part of my ant build. i noticed that csstidy does this, but it would not be easy to include this in my ant build because i would need to use a different binary on different platforms. so, is there a java css compressor that people use?

Original source