mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug294190 Wait for concurrent Jobs to finish before exiting.
This commit is contained in:
parent
905800494f
commit
32bbacaf36
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,7 @@ import org.eclipse.core.runtime.NullProgressMonitor;
|
|||
import org.eclipse.core.runtime.Path;
|
||||
import org.eclipse.core.runtime.Preferences;
|
||||
import org.eclipse.core.runtime.Status;
|
||||
import org.eclipse.core.runtime.jobs.Job;
|
||||
import org.eclipse.equinox.app.IApplication;
|
||||
import org.eclipse.equinox.app.IApplicationContext;
|
||||
|
||||
|
@ -213,6 +214,11 @@ public class HeadlessBuilder implements IApplication {
|
|||
desc.setAutoBuilding(isAutoBuilding);
|
||||
root.getWorkspace().setDescription(desc);
|
||||
}
|
||||
|
||||
// Wait for any outstanding jobs to finish
|
||||
while (!Job.getJobManager().isIdle())
|
||||
Thread.sleep(10);
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue