We accidentally dropped a 0 in getBundle() -- we need to stop the system
bundle, not the CDS bundle.
Change-Id: Idbaa59aa39c2863ec76859b2ffa448b50890fd55
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
// restart the entire karaf container
LOG.warn("Restarting karaf container");
System.setProperty("karaf.restart.jvm", "true");
- bundleContext.getBundle().stop();
+ bundleContext.getBundle(0).stop();
});
}
}