Core: вывод запущенных бандлов
This commit is contained in:
@@ -29,7 +29,6 @@ public class HostActivator implements BundleActivator {
|
||||
|
||||
@Override
|
||||
public void start(BundleContext bundleContext) throws Exception {
|
||||
logger.trace("call [HostActivator.start(BundleContext)]");
|
||||
List<Bundle> bundleList = new ArrayList<>();
|
||||
|
||||
Files.list(BUNDLES_DIR).forEach(path -> {
|
||||
@@ -44,11 +43,12 @@ public class HostActivator implements BundleActivator {
|
||||
});
|
||||
|
||||
for (Bundle bundle : bundleList) {
|
||||
logger.trace("{} | {} | State: {}", bundle.getBundleId(),
|
||||
bundle.getSymbolicName(), bundle.getState());
|
||||
logger.trace("{} | {} | {}",
|
||||
bundle.getBundleId(),
|
||||
bundle.getSymbolicName(),
|
||||
bundle.getVersion());
|
||||
if (bundle.getState() == Bundle.INSTALLED) {
|
||||
bundle.start();
|
||||
logger.trace("\tStarted");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user