diff --git a/src/java/com/threerings/cast/bundle/tools/ComponentBundlerTask.java b/src/java/com/threerings/cast/bundle/tools/ComponentBundlerTask.java index 0fa5f38fb..c2a261f9f 100644 --- a/src/java/com/threerings/cast/bundle/tools/ComponentBundlerTask.java +++ b/src/java/com/threerings/cast/bundle/tools/ComponentBundlerTask.java @@ -1,5 +1,5 @@ // -// $Id: ComponentBundlerTask.java,v 1.18 2003/01/13 22:53:04 mdb Exp $ +// $Id: ComponentBundlerTask.java,v 1.19 2003/06/17 23:29:33 ray Exp $ package com.threerings.cast.bundle.tools; @@ -26,6 +26,7 @@ import java.util.Iterator; import java.util.jar.JarOutputStream; import java.util.jar.JarEntry; +import java.util.zip.Deflater; import org.xml.sax.SAXException; import org.apache.commons.digester.Digester; @@ -156,6 +157,7 @@ public class ComponentBundlerTask extends Task // make sure we can create our bundle file FileOutputStream fout = new FileOutputStream(_target); JarOutputStream jout = new JarOutputStream(fout); + jout.setLevel(Deflater.BEST_COMPRESSION); // we'll fill this with component id to tuple mappings HashIntMap mapping = new HashIntMap(); diff --git a/src/java/com/threerings/cast/bundle/tools/MetadataBundlerTask.java b/src/java/com/threerings/cast/bundle/tools/MetadataBundlerTask.java index 56046e070..b2ead9bb9 100644 --- a/src/java/com/threerings/cast/bundle/tools/MetadataBundlerTask.java +++ b/src/java/com/threerings/cast/bundle/tools/MetadataBundlerTask.java @@ -1,5 +1,5 @@ // -// $Id: MetadataBundlerTask.java,v 1.3 2002/06/26 23:53:07 mdb Exp $ +// $Id: MetadataBundlerTask.java,v 1.4 2003/06/17 23:29:33 ray Exp $ package com.threerings.cast.bundle.tools; @@ -17,6 +17,7 @@ import java.util.HashMap; import java.util.jar.JarOutputStream; import java.util.jar.JarEntry; +import java.util.zip.Deflater; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Task; @@ -91,6 +92,7 @@ public class MetadataBundlerTask extends Task // and create the bundle file JarOutputStream jout = new JarOutputStream(fout); + jout.setLevel(Deflater.BEST_COMPRESSION); // throw the serialized actions table in there JarEntry aentry = new JarEntry(BundleUtil.ACTIONS_PATH); diff --git a/src/java/com/threerings/media/tile/bundle/tools/TileSetBundler.java b/src/java/com/threerings/media/tile/bundle/tools/TileSetBundler.java index 9b4427110..11a38453d 100644 --- a/src/java/com/threerings/media/tile/bundle/tools/TileSetBundler.java +++ b/src/java/com/threerings/media/tile/bundle/tools/TileSetBundler.java @@ -1,5 +1,5 @@ // -// $Id: TileSetBundler.java,v 1.16 2003/05/13 21:33:58 ray Exp $ +// $Id: TileSetBundler.java,v 1.17 2003/06/17 23:29:33 ray Exp $ package com.threerings.media.tile.bundle.tools; @@ -19,6 +19,7 @@ import java.util.Iterator; import java.util.jar.JarEntry; import java.util.jar.JarOutputStream; import java.util.jar.Manifest; +import java.util.zip.Deflater; import org.xml.sax.SAXException; @@ -310,6 +311,7 @@ public class TileSetBundler FileOutputStream fout = new FileOutputStream(target); Manifest manifest = new Manifest(); JarOutputStream jar = new JarOutputStream(fout, manifest); + jar.setLevel(Deflater.BEST_COMPRESSION); // create an image provider for loading our tileset images SimpleCachingImageProvider improv = new SimpleCachingImageProvider() {