public String start()

in services/minho-osgi/src/main/java/org/apache/karaf/minho/osgi/OsgiModuleManagerService.java [177:196]


    public String start(String url) throws Exception {
        log.info("Starting OSGi module " + url);
        Bundle bundle;
        try {
            bundle = framework.getBundleContext().installBundle(url);
        } catch (Exception e) {
            throw new IllegalArgumentException("Failed to install OSGi module " + url, e);
        }
        log.info("Activating OSGi module " + bundle.getSymbolicName() + "/" + bundle.getVersion());
        try {
            if (bundle.getHeaders().get(Constants.FRAGMENT_HOST) == null) {
                bundle.start();
            } else {
                log.info("OSGi module " + bundle.getSymbolicName() + "/" + bundle.getVersion() + " is a fragment, so not started");
            }
        } catch (Exception e) {
            throw new IllegalStateException("Failed to start OSGi module " + bundle.getSymbolicName() + "/" + bundle.getVersion(), e);
        }
        return bundle.getLocation();
    }