Skip to content

Commit

Permalink
Backport : Do not build unrelated projects eclipse-pde#1214
Browse files Browse the repository at this point in the history
Backporting fix to 4_31 Maintenance Branch.
  • Loading branch information
MohananRahul authored and gireeshpunathil committed Sep 26, 2024
1 parent d89028d commit 479670d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/org.eclipse.pde.core/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %name
Bundle-SymbolicName: org.eclipse.pde.core; singleton:=true
Bundle-Version: 3.18.0.qualifier
Bundle-Version: 3.18.1.qualifier
Bundle-Activator: org.eclipse.pde.internal.core.PDECore
Bundle-Vendor: %provider-name
Bundle-Localization: plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import org.eclipse.pde.core.plugin.IPluginModelBase;
import org.eclipse.pde.internal.build.BundleHelper;
import org.eclipse.pde.internal.build.IPDEBuildConstants;
import org.eclipse.pde.internal.core.builders.PDEBuilderHelper;
import org.eclipse.pde.internal.core.util.ManifestUtils;
import org.eclipse.pde.internal.core.util.UtilMessages;
import org.osgi.framework.BundleException;
Expand Down Expand Up @@ -335,12 +336,14 @@ public static IStatus reloadSystemPackagesIntoState() {
// Perform PDE-Manifest build, to re-validate all Manifests
MultiStatus status = new MultiStatus(MinimalState.class, 0, "Reload of JRE system-packages encountered issues"); //$NON-NLS-1$
for (IProject project : ResourcesPlugin.getWorkspace().getRoot().getProjects()) {
try {
project.build(IncrementalProjectBuilder.FULL_BUILD, PDE_MANIFEST_BUILDER, null, null);
} catch (CoreException e) { // ignore
if (PDEBuilderHelper.isPDEProject(project)) {
try {
project.build(IncrementalProjectBuilder.FULL_BUILD, PDE_MANIFEST_BUILDER, null, null);
} catch (CoreException e) { // ignore
status.add(e.getStatus());
}
}
}
}
return status;
}

Expand Down

0 comments on commit 479670d

Please sign in to comment.