From a69ce37879c982b87b62f36e4233edacce8143a4 Mon Sep 17 00:00:00 2001 From: Doug Schaefer Date: Tue, 28 Nov 2017 12:05:43 -0500 Subject: [PATCH] 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 --- .../cdt/internal/core/build/CBuildConfigurationManager.java | 4 ++-- 1 file 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 20b1be3b31d..babca7dfa57 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;