From: Bruno Sinou Date: Thu, 12 Jun 2014 21:16:21 +0000 (+0000) Subject: Fix unclosed jar X-Git-Tag: argeo-slc-2.1.7~170 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=22233a0476fb6804f04c4ede9f5750d8e5143b85;p=gpl%2Fargeo-slc.git Fix unclosed jar git-svn-id: https://svn.argeo.org/slc/trunk@7056 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/ModularDistributionFactory.java b/runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/ModularDistributionFactory.java index db22db66c..f79b4ed4a 100644 --- a/runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/ModularDistributionFactory.java +++ b/runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/ModularDistributionFactory.java @@ -73,7 +73,7 @@ public class ModularDistributionFactory implements Runnable { distFile = generatePomFile(); else throw new SlcException( - "Unimplemented distribution azrtiofact type " + "Unimplemented distribution artifact type: " + artifactType + " for " + osgiDistribution.toString()); @@ -106,6 +106,7 @@ public class ModularDistributionFactory implements Runnable { jarOut = new JarOutputStream(byteOut, createManifest()); // Create various indexes addToJar(createCsvDescriptor(), CSV_FILE_NAME, jarOut); + jarOut.close(); return byteOut.toByteArray(); } catch (IOException e) { throw new SlcException(