karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject karaf git commit: [KARAF-4028] Avoid corruption of karaf-wrapper-main.jar
Date Mon, 05 Oct 2015 14:33:01 GMT
Repository: karaf
Updated Branches:
  refs/heads/master 57df26d10 -> c623f2e52


[KARAF-4028] Avoid corruption of karaf-wrapper-main.jar


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/c623f2e5
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/c623f2e5
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/c623f2e5

Branch: refs/heads/master
Commit: c623f2e52ebb29e302846cea5da13110d2710074
Parents: 57df26d
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Mon Oct 5 16:32:25 2015 +0200
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Mon Oct 5 16:32:25 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/karaf/wrapper/internal/WrapperServiceImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/c623f2e5/wrapper/src/main/java/org/apache/karaf/wrapper/internal/WrapperServiceImpl.java
----------------------------------------------------------------------
diff --git a/wrapper/src/main/java/org/apache/karaf/wrapper/internal/WrapperServiceImpl.java
b/wrapper/src/main/java/org/apache/karaf/wrapper/internal/WrapperServiceImpl.java
index e5e71da..a4832c8 100644
--- a/wrapper/src/main/java/org/apache/karaf/wrapper/internal/WrapperServiceImpl.java
+++ b/wrapper/src/main/java/org/apache/karaf/wrapper/internal/WrapperServiceImpl.java
@@ -451,7 +451,7 @@ public class WrapperServiceImpl implements WrapperService {
                 JarOutputStream jar = new JarOutputStream(new FileOutputStream(outFile));
                 int idx = resource.indexOf('/');
                 while (idx > 0) {
-                    jar.putNextEntry(new ZipEntry(resource.substring(0, idx)));
+                    jar.putNextEntry(new ZipEntry(resource.substring(0, idx + 1)));
                     jar.closeEntry();
                     idx = resource.indexOf('/', idx + 1);
                 }


Mime
View raw message