File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 4747import org .eclipse .pde .core .project .IBundleProjectService ;
4848import org .eclipse .pde .core .target .ITargetDefinition ;
4949import org .eclipse .pde .core .target .ITargetPlatformService ;
50+ import org .eclipse .pde .internal .build .IPDEBuildConstants ;
5051import org .eclipse .pde .internal .core .bnd .BndResourceChangeListener ;
5152import org .eclipse .pde .internal .core .bnd .BndWorkspaceServiceFactory ;
5253import 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 ;
You can’t perform that action at this time.
0 commit comments