1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

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
This commit is contained in:
Doug Schaefer 2017-11-28 12:05:43 -05:00
parent 7d208e098f
commit a69ce37879

View file

@ -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;