Implement the gunzipping.
if (source.lastModified() > dest.lastModified()) {
log("Expanding " + source.getAbsolutePath() + " to "
+ dest.getAbsolutePath());
FileOutputStream out = null;
GZIPInputStream zIn = null;
InputStream fis = null;
try {
out = new FileOutputStream(dest);
fis = srcResource.getInputStream();
zIn = new GZIPInputStream(fis);
byte[] buffer = new byte[8 * 1024];
int count = 0;
do {
out.write(buffer, 0, count);
count = zIn.read(buffer, 0, buffer.length);
} while (count != -1);
} catch (IOException ioe) {
String msg = "Problem expanding gzip " + ioe.getMessage();
throw new BuildException(msg, ioe, getLocation());
} finally {
FileUtils.close(fis);
FileUtils.close(out);
FileUtils.close(zIn);
}
}