]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/ModularDistributionFactory.java
Improve licenses and sources
[gpl/argeo-slc.git] / 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(