You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2016/01/19 14:00:06 UTC

karaf git commit: KARAF-2522 - Doesn't start bundle with start=false when NoCleanIfFailure is provided

Repository: karaf
Updated Branches:
  refs/heads/karaf-2.3.x 267168927 -> 3fdffd961


KARAF-2522 - Doesn't start bundle with start=false when NoCleanIfFailure is provided


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

Branch: refs/heads/karaf-2.3.x
Commit: 3fdffd96191e7860a5c5feb43619e6ae3a1ff566
Parents: 2671689
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Tue Jan 19 13:57:41 2016 +0100
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Tue Jan 19 13:57:41 2016 +0100

----------------------------------------------------------------------
 .../org/apache/karaf/features/internal/FeaturesServiceImpl.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/3fdffd96/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
----------------------------------------------------------------------
diff --git a/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java b/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
index 5efdcb2..5361c01 100644
--- a/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
+++ b/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
@@ -531,7 +531,9 @@ public class FeaturesServiceImpl implements FeaturesService, FrameworkListener {
                 // Force start of bundles so that they are flagged as persistently started
                 for (Bundle b : state.installed) {
                     try {
-                        b.start();
+                        BundleInfo info = state.bundleInfos.get(b.getBundleId());
+                        if (info.isStart())
+                            b.start();
                     } catch (Exception e2) {
                         // Ignore
                     }