From 22233a0476fb6804f04c4ede9f5750d8e5143b85 Mon Sep 17 00:00:00 2001 From: Bruno Sinou Date: Thu, 12 Jun 2014 21:16:21 +0000 Subject: [PATCH] Fix unclosed jar git-svn-id: https://svn.argeo.org/slc/trunk@7056 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- .../java/org/argeo/slc/repo/ModularDistributionFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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( -- 2.39.5