1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

bug 371797: [sd90] Fixed problem with not running non-shared Specs Detectors after new project wizard

This commit is contained in:
Andrew Gvozdev 2012-05-04 09:23:13 -04:00
parent fefa6b2c29
commit 621ee0fe22
2 changed files with 5 additions and 1 deletions

View file

@ -106,6 +106,10 @@ public class BuiltinSpecsDetectorTest extends BaseTestCase {
@Override @Override
protected void execute() { protected void execute() {
super.execute(); super.execute();
try {
Job.getJobManager().join(AbstractBuiltinSpecsDetector.JOB_FAMILY_BUILTIN_SPECS_DETECTOR, null);
} catch (Exception e) {
}
} }
protected boolean isExecuted() { protected boolean isExecuted() {
return isExecuted; return isExecuted;

View file

@ -349,7 +349,6 @@ public abstract class AbstractBuiltinSpecsDetector extends AbstractLanguageSetti
if (isExecuted) { if (isExecuted) {
return; return;
} }
isExecuted = true;
WorkspaceJob job = new WorkspaceJob(ManagedMakeMessages.getResourceString("AbstractBuiltinSpecsDetector.DiscoverBuiltInSettingsJobName")) { //$NON-NLS-1$ WorkspaceJob job = new WorkspaceJob(ManagedMakeMessages.getResourceString("AbstractBuiltinSpecsDetector.DiscoverBuiltInSettingsJobName")) { //$NON-NLS-1$
@Override @Override
@ -362,6 +361,7 @@ public abstract class AbstractBuiltinSpecsDetector extends AbstractLanguageSetti
ManagedBuilderCorePlugin.log(e); ManagedBuilderCorePlugin.log(e);
status = new Status(IStatus.ERROR, ManagedBuilderCorePlugin.PLUGIN_ID, IStatus.ERROR, "Error running Builtin Specs Detector", e); //$NON-NLS-1$ status = new Status(IStatus.ERROR, ManagedBuilderCorePlugin.PLUGIN_ID, IStatus.ERROR, "Error running Builtin Specs Detector", e); //$NON-NLS-1$
} finally { } finally {
isExecuted = true;
shutdown(); shutdown();
} }