1920212223242526272829
if (files != null) { for (File file: files) { archiver.add(file); } } archiver.save(new File(archive)); manager.completeWorkItem(workItem.getId(), null); } catch (Throwable t) { t.printStackTrace(); manager.abortWorkItem(workItem.getId()); }