mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-16 08:36:55 +01:00
fixed bug due caused by moving properties from cve to data directory
Former-commit-id: b005fa577f5ebe7e8c31465e1a3a33c6f4f5c958
This commit is contained in:
@@ -250,12 +250,12 @@ public class DatabaseUpdater implements CachedWebDataSource {
|
||||
*/
|
||||
protected void deleteExistingData() throws IOException {
|
||||
Logger.getLogger(DatabaseUpdater.class.getName()).log(Level.INFO, "The database version is old. Rebuilding the database.");
|
||||
|
||||
final File cveDir = CveDB.getDataDirectory();
|
||||
FileUtils.delete(cveDir);
|
||||
|
||||
final File cpeDir = BaseIndex.getDataDirectory();
|
||||
FileUtils.delete(cpeDir);
|
||||
final File data = Settings.getFile(Settings.KEYS.DATA_DIRECTORY);
|
||||
FileUtils.delete(data);
|
||||
// final File cveDir = CveDB.getDataDirectory();
|
||||
// FileUtils.delete(cveDir);
|
||||
// final File cpeDir = BaseIndex.getDataDirectory();
|
||||
// FileUtils.delete(cpeDir);
|
||||
}
|
||||
|
||||
private void performBatchUpdate() throws UpdateException {
|
||||
|
||||
Reference in New Issue
Block a user