mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
fixed bug due caused by moving properties from cve to data directory
Former-commit-id: 508894a061b40bb80fb294835021e3ba8f34037b
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