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
This commit is contained in:
Mike Thomas
2007-07-30 20:59:32 +00:00
parent 9ba5a61ab0
commit 1f435d582d
@@ -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