Skip to content

Commit

Permalink
Do not build unrelated projects #1214
Browse files Browse the repository at this point in the history
  • Loading branch information
basilevs authored and HannesWell committed Mar 29, 2024
1 parent 203a2c1 commit 69d8323
Showing 1 changed file with 7 additions and 4 deletions.
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,10 +336,12 @@ 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
status.add(e.getStatus());
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 69d8323

Please sign in to comment.