mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-22 17:19:30 +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 {
|
protected void deleteExistingData() throws IOException {
|
||||||
Logger.getLogger(DatabaseUpdater.class.getName()).log(Level.INFO, "The database version is old. Rebuilding the database.");
|
Logger.getLogger(DatabaseUpdater.class.getName()).log(Level.INFO, "The database version is old. Rebuilding the database.");
|
||||||
|
final File data = Settings.getFile(Settings.KEYS.DATA_DIRECTORY);
|
||||||
final File cveDir = CveDB.getDataDirectory();
|
FileUtils.delete(data);
|
||||||
FileUtils.delete(cveDir);
|
// final File cveDir = CveDB.getDataDirectory();
|
||||||
|
// FileUtils.delete(cveDir);
|
||||||
final File cpeDir = BaseIndex.getDataDirectory();
|
// final File cpeDir = BaseIndex.getDataDirectory();
|
||||||
FileUtils.delete(cpeDir);
|
// FileUtils.delete(cpeDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void performBatchUpdate() throws UpdateException {
|
private void performBatchUpdate() throws UpdateException {
|
||||||
|
|||||||
Reference in New Issue
Block a user