Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2017-11-28 12:05:43 -0500
committerDoug Schaefer2017-11-28 13:19:16 -0500
commita69ce37879c982b87b62f36e4233edacce8143a4 (patch)
tree3a71630024e40d03c5adfe60516ca20a1c29be50
parent7d208e098f2c7e0e201a986c8f2c825ae68c34cb (diff)
downloadorg.eclipse.cdt-a69ce37879c982b87b62f36e4233edacce8143a4.tar.gz
org.eclipse.cdt-a69ce37879c982b87b62f36e4233edacce8143a4.tar.xz
org.eclipse.cdt-a69ce37879c982b87b62f36e4233edacce8143a4.zip
Info cache files were not getting deleted properly
When deleting projects then creating them with the same name the scanner info didn't get cleared up and was reused. We were deleting these files from the wrong path. Change-Id: Ieda174b7cfc9690ab51be65e674bda321cb3bc10
-rw-r--r--core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/build/CBuildConfigurationManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/build/CBuildConfigurationManager.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/build/CBuildConfigurationManager.java
index 20b1be3b31..babca7dfa5 100644
--- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/build/CBuildConfigurationManager.java
+++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/build/CBuildConfigurationManager.java
@@ -310,8 +310,8 @@ public class CBuildConfigurationManager implements ICBuildConfigurationManager,
}
// Clean up the scanner info data
- IPath stateLoc = CCorePlugin.getDefault().getStateLocation();
- IPath scannerInfoPath = stateLoc.append(project.getName());
+ IPath scannerInfoPath = CCorePlugin.getDefault().getStateLocation().append("infoCache") //$NON-NLS-1$
+ .append(project.getName());
Path directory = scannerInfoPath.toFile().toPath();
if (!Files.exists(directory)) {
return;

Back to the top