Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ private void deleteProjectDataWorkHorse(Project project, boolean clearHistoryGur
LOGGER.log(Level.INFO, "deleting data for project ''{0}''", projectName);

// Delete index and xrefs.
for (String dirName: new String[]{IndexDatabase.INDEX_DIR, IndexDatabase.XREF_DIR}) {
java.nio.file.Path path = Paths.get(env.getDataRootPath(), dirName, projectName);
try {
IOUtils.removeRecursive(path);
} catch (IOException e) {
LOGGER.log(Level.WARNING, "Could not delete ''{0}''", path);
}
}
// for (String dirName: new String[]{IndexDatabase.INDEX_DIR, IndexDatabase.XREF_DIR}) {
// java.nio.file.Path path = Paths.get(env.getDataRootPath(), dirName, projectName);
// try {
// IOUtils.removeRecursive(path);
// } catch (IOException e) {
// LOGGER.log(Level.WARNING, "Could not delete ''{0}''", path);
// }
// }

List<RepositoryInfo> repos = env.getProjectRepositoriesMap().get(project);
if (repos == null || repos.isEmpty()) {
Expand Down