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-5109] endorsed and ext directories are not set properly
Date Fri, 28 Apr 2017 08:56:27 GMT
Repository: karaf
Updated Branches:
  refs/heads/karaf-4.1.x 0a3fdbb64 -> 594d80dcf


[KARAF-5109] endorsed and ext directories are not set properly


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

Branch: refs/heads/karaf-4.1.x
Commit: 594d80dcf0d676c19343b034aacd66825ab653ab
Parents: 0a3fdbb
Author: Frédérik Rouleau <frouleau@gmail.com>
Authored: Thu Apr 27 22:31:40 2017 +0200
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Fri Apr 28 10:56:19 2017 +0200

----------------------------------------------------------------------
 .../karaf/instance/core/internal/InstanceServiceImpl.java     | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/594d80dc/instance/src/main/java/org/apache/karaf/instance/core/internal/InstanceServiceImpl.java
----------------------------------------------------------------------
diff --git a/instance/src/main/java/org/apache/karaf/instance/core/internal/InstanceServiceImpl.java
b/instance/src/main/java/org/apache/karaf/instance/core/internal/InstanceServiceImpl.java
index c5a6e19..7284f64 100644
--- a/instance/src/main/java/org/apache/karaf/instance/core/internal/InstanceServiceImpl.java
+++ b/instance/src/main/java/org/apache/karaf/instance/core/internal/InstanceServiceImpl.java
@@ -493,12 +493,13 @@ public class InstanceServiceImpl implements InstanceService {
 
         String location = instance.loc;
 
-        File libDir = new File(System.getProperty("karaf.home"), "lib" + File.separator +
"boot");
+        File libDir = new File(System.getProperty("karaf.home"), "lib");
+        File bootLibDir = new File(libDir, "boot");
         File childLibDir = new File(location, "lib");
 
-        StringBuilder classpath = classpathFromLibDir(libDir);
+        StringBuilder classpath = classpathFromLibDir(bootLibDir);
         StringBuilder childClasspath = classpathFromLibDir(childLibDir);
-        if (childClasspath.length() > 0 && !libDir.equals(childLibDir)) {
+        if (childClasspath.length() > 0 && !bootLibDir.equals(childLibDir)) {
             classpath.append(System.getProperty("path.separator"));
             classpath.append(childClasspath);
         }


Mime
View raw message