サンプル
protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws IOException {
FileOutputStream fOS = FileUtility.getFileOutputStream(FileUtility.getFileName());
ZipOutputStream zOS = new ZipOutputStream(fOS);
zOS.putNextEntry(new ZipEntry("foo"));
zOS.putNextEntry(new ZipEntry("foo2"));
zOS.putNextEntry(new ZipEntry("foo3"));
zOS.close();
fOS.close();
}
解決策
成果物を ZIP 化する必要がある場合は、アプリケーションの開始前か、オフライン・ジョブで ZIP 化します。