Skip to content

Commit 6cf4f9b

Browse files
committed
Do not expose the system bundle from the host
See #2082
1 parent 98f11cb commit 6cf4f9b

File tree

1 file changed

+6
-0
lines changed
  • ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core

1 file changed

+6
-0
lines changed

ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/PDECore.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import org.eclipse.pde.core.project.IBundleProjectService;
4848
import org.eclipse.pde.core.target.ITargetDefinition;
4949
import org.eclipse.pde.core.target.ITargetPlatformService;
50+
import org.eclipse.pde.internal.build.IPDEBuildConstants;
5051
import org.eclipse.pde.internal.core.bnd.BndResourceChangeListener;
5152
import org.eclipse.pde.internal.core.bnd.BndWorkspaceServiceFactory;
5253
import org.eclipse.pde.internal.core.builders.FeatureRebuilder;
@@ -244,6 +245,11 @@ public PDECore() {
244245
* {@link #VERSION} comparator.
245246
*/
246247
public Stream<IPluginModelBase> findPluginsInHost(String id) {
248+
if (IPDEBuildConstants.BUNDLE_OSGI.equals(id)) {
249+
// Do not expose the OSGi framework from the host see
250+
// https://github.com/eclipse-pde/eclipse.pde/issues/2082
251+
return Stream.empty();
252+
}
247253
Map<String, List<IPluginModelBase>> hostPlugins = getHostPlugins();
248254
if (hostPlugins == null) {
249255
return null;

0 commit comments

Comments
 (0)