Maximum gzip compression with ant

The GZip task in ant does not work, but is there a way to get it to use maximum compression - the equivalent gzip -9?

I don’t want to just use the built-in task exec, because then I will lose cross-platform compatibility.

The reason I ask is because I need to compress the change log with gzip to include in the debian package (also created with ant), and if it does not use the maximum compromise lintian, it gives a warning (which I obviously would like to avoid.)

+5
source share
1 answer

Why don't you create a small program with this http://commons.apache.org/compress/

. http://bytemycode.com/snippets/snippet/178 GZipOut

+2

All Articles