528529530531532533534535536537538
try { os = target.putNextEntry(entryName); FileUtils.copy(is, os, source.getEntrySize(entryName)); } finally { if (os!=null) { target.closeEntry(); } is.close(); } } }
541542543544545546547548549550551
Manifest m = source.getManifest(); if (m!=null) { processManifest(m, moduleName); OutputStream os = target.putNextEntry(JarFile.MANIFEST_NAME); m.write(os); target.closeEntry(); } source.close(); target.close();