Repository: karaf Updated Branches: refs/heads/karaf-2.x 3ace2b875 -> 65e6e3260
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/65e6e326 Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/65e6e326 Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/65e6e326 Branch: refs/heads/karaf-2.x Commit: 65e6e3260d01a4aa79c1ab688085b1952312f5cd Parents: 3ace2b8 Author: Jean-Baptiste Onofré <[email protected]> Authored: Tue Jan 19 13:57:41 2016 +0100 Committer: Jean-Baptiste Onofré <[email protected]> Committed: Tue Jan 19 14:01:47 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/65e6e326/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 823b915..a45d3e9 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 @@ -631,7 +631,9 @@ public class FeaturesServiceImpl implements FeaturesService { // 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 }
