Fix Jar copy
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 29 Aug 2014 12:39:44 +0000 (12:39 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 29 Aug 2014 12:39:44 +0000 (12:39 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@7211 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

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

index da4c35a99eb562a871812d8c009a5d2ccebe8296..9ff8f15fb9fb006a332c183382995da7af9d6d8a 100644 (file)
@@ -200,7 +200,8 @@ public class RepoUtils implements ArgeoNames, SlcNames {
                        jarOut = new JarOutputStream(out, manifest);
                        JarEntry jarEntry = null;
                        while ((jarEntry = jarIn.getNextJarEntry()) != null) {
-                               jarOut.putNextEntry(jarEntry);
+                               JarEntry newJarEntry = new JarEntry(jarEntry.getName());
+                               jarOut.putNextEntry(newJarEntry);
                                IOUtils.copy(jarIn, jarOut);
                                jarIn.closeEntry();
                                jarOut.closeEntry();