Fix unclosed jar
authorBruno Sinou <bsinou@argeo.org>
Thu, 12 Jun 2014 21:16:21 +0000 (21:16 +0000)
committerBruno Sinou <bsinou@argeo.org>
Thu, 12 Jun 2014 21:16:21 +0000 (21:16 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@7056 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/ModularDistributionFactory.java

index db22db66c50201d6b4ff4f1dfffed37ef7dfff5c..f79b4ed4af8e445ca5d6a9785bdabde829cdc952 100644 (file)
@@ -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(