mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-15 00:03:43 +01:00
removed references to CPE data directory as this has been moved to a RAMDisk directory
Former-commit-id: 8f4dafe9a687f254bec75703a1f392333cfbde54
This commit is contained in:
@@ -164,10 +164,6 @@ public abstract class AbstractUpdateTask implements UpdateTask {
|
||||
if (data.exists()) {
|
||||
FileUtils.delete(data);
|
||||
}
|
||||
data = Settings.getFile(Settings.KEYS.CPE_DATA_DIRECTORY);
|
||||
if (data.exists()) {
|
||||
FileUtils.delete(data);
|
||||
}
|
||||
data = DataStoreMetaInfo.getPropertiesFile();
|
||||
if (data.exists()) {
|
||||
FileUtils.delete(data);
|
||||
|
||||
@@ -79,10 +79,6 @@ public class DatabaseUpdater implements CachedWebDataSource {
|
||||
if (data.exists()) {
|
||||
FileUtils.delete(data);
|
||||
}
|
||||
data = Settings.getFile(Settings.KEYS.CPE_DATA_DIRECTORY);
|
||||
if (data.exists()) {
|
||||
FileUtils.delete(data);
|
||||
}
|
||||
data = DataStoreMetaInfo.getPropertiesFile();
|
||||
if (data.exists()) {
|
||||
FileUtils.delete(data);
|
||||
|
||||
@@ -72,11 +72,6 @@ public final class Settings {
|
||||
* contains the contents of the data directory.
|
||||
*/
|
||||
public static final String BATCH_UPDATE_URL = "batch.update.url";
|
||||
/**
|
||||
* The properties key for the path where the CPE Lucene Index will be
|
||||
* stored.
|
||||
*/
|
||||
public static final String CPE_DATA_DIRECTORY = "data.cpe";
|
||||
/**
|
||||
* The properties key for the path where the CVE H2 database will be
|
||||
* stored.
|
||||
|
||||
@@ -57,8 +57,8 @@ public class SettingsTest {
|
||||
*/
|
||||
@Test
|
||||
public void testGetString() {
|
||||
String key = Settings.KEYS.CPE_DATA_DIRECTORY;
|
||||
String expResult = "cpe";
|
||||
String key = Settings.KEYS.CVE_DATA_DIRECTORY;
|
||||
String expResult = "cve";
|
||||
String result = Settings.getString(key);
|
||||
Assert.assertTrue(result.endsWith(expResult));
|
||||
}
|
||||
@@ -68,8 +68,8 @@ public class SettingsTest {
|
||||
*/
|
||||
@Test
|
||||
public void testGetFile() throws IOException {
|
||||
String key = Settings.KEYS.CPE_DATA_DIRECTORY;
|
||||
String expResult = "data" + File.separator + "cpe";
|
||||
String key = Settings.KEYS.CVE_DATA_DIRECTORY;
|
||||
String expResult = "data" + File.separator + "cve";
|
||||
File result = Settings.getFile(key);
|
||||
Assert.assertTrue(result.getAbsolutePath().endsWith(expResult));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user