Skip to content

Commit

Permalink
Don't start fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
guw committed Jul 17, 2023
1 parent 24c3892 commit 7efeb94
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import org.osgi.framework.namespace.IdentityNamespace;
import org.osgi.framework.startlevel.BundleStartLevel;
import org.osgi.framework.wiring.BundleCapability;
import org.osgi.framework.wiring.BundleRevision;
import org.osgi.framework.wiring.FrameworkWiring;
import org.osgi.resource.Namespace;

Expand Down Expand Up @@ -267,6 +268,10 @@ private static IStatus startBundles(Collection<Bundle> bundles) {
status.add(new Status(IStatus.ERROR, context.getBundle().getSymbolicName(), "Could not start: " + bundle.getSymbolicName() + '(' + bundle.getLocation() + ':' + bundle.getBundleId() + ')' + ". It's state is uninstalled."));
continue;
}
if ((bundle.adapt(BundleRevision.class).getTypes() & BundleRevision.TYPE_FRAGMENT) != 0) {
continue;
}

if (bundle.getState() == Bundle.STARTING) {
continue;
}
Expand Down

0 comments on commit 7efeb94

Please sign in to comment.