From 1f435d582d0df9d1aee348f80e4eea35a742586a Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Mon, 30 Jul 2007 20:59:32 +0000 Subject: [PATCH] If our build process fails to properly trim a tile set, it's kinda a big deal, so throw a BuildException so ant hears about it and stops. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@280 ed5b42cb-e716-0410-a449-f6a68f950b19 --- .../threerings/cast/bundle/tools/ComponentBundlerTask.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/cast/bundle/tools/ComponentBundlerTask.java b/src/java/com/threerings/cast/bundle/tools/ComponentBundlerTask.java index 3d8a44e5..e601b16d 100644 --- a/src/java/com/threerings/cast/bundle/tools/ComponentBundlerTask.java +++ b/src/java/com/threerings/cast/bundle/tools/ComponentBundlerTask.java @@ -250,7 +250,7 @@ public class ComponentBundlerTask extends Task protected void processComponent ( String[] info, TileSet aset, File cfile, JarOutputStream jout) - throws IOException + throws IOException, BuildException { // construct the path that'll go in the jar file String ipath = composePath( @@ -272,6 +272,9 @@ public class ComponentBundlerTask extends Task ", action=" + info[2] + ", srcimg=" + aset.getImagePath() + "]."); t.printStackTrace(System.err); + + String errmsg = "Failure trimming tileset."; + throw new BuildException(errmsg, t); } // then write our trimmed tileset to the jar file