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:
parent
7d208e098f
commit
a69ce37879
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue