1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Bug 513763 - Save workspace following headless build

Change-Id: I657f8bf8155dd669921caef951d16e23601f01ad
Signed-off-by: John Dallaway <john@dallaway.org.uk>
This commit is contained in:
John Dallaway 2017-03-16 14:40:29 +00:00 committed by Gerrit Code Review @ Eclipse.org
parent a2160bd5f1
commit 57332b1d1d

View file

@ -13,6 +13,7 @@
* - Bug 300554 Build status not propagated
* to exit code
* R. Zulliger, C. Walther (Indel AG) - Bug 355609 Disable indexer
* John Dallaway - Bug 513763 Save workspace on conclusion
*******************************************************************************/
package org.eclipse.cdt.managedbuilder.internal.core;
@ -550,6 +551,9 @@ public class HeadlessBuilder implements IApplication {
IWorkspaceDescription desc = root.getWorkspace().getDescription();
desc.setAutoBuilding(isAutoBuilding);
root.getWorkspace().setDescription(desc);
// Save modified workspace (bug 513763)
root.getWorkspace().save(true, monitor);
}
return buildSuccessful ? OK : ERROR;