mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 17:41:28 +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()) {
|
if (data.exists()) {
|
||||||
FileUtils.delete(data);
|
FileUtils.delete(data);
|
||||||
}
|
}
|
||||||
data = Settings.getFile(Settings.KEYS.CPE_DATA_DIRECTORY);
|
|
||||||
if (data.exists()) {
|
|
||||||
FileUtils.delete(data);
|
|
||||||
}
|
|
||||||
data = DataStoreMetaInfo.getPropertiesFile();
|
data = DataStoreMetaInfo.getPropertiesFile();
|
||||||
if (data.exists()) {
|
if (data.exists()) {
|
||||||
FileUtils.delete(data);
|
FileUtils.delete(data);
|
||||||
|
|||||||
@@ -79,10 +79,6 @@ public class DatabaseUpdater implements CachedWebDataSource {
|
|||||||
if (data.exists()) {
|
if (data.exists()) {
|
||||||
FileUtils.delete(data);
|
FileUtils.delete(data);
|
||||||
}
|
}
|
||||||
data = Settings.getFile(Settings.KEYS.CPE_DATA_DIRECTORY);
|
|
||||||
if (data.exists()) {
|
|
||||||
FileUtils.delete(data);
|
|
||||||
}
|
|
||||||
data = DataStoreMetaInfo.getPropertiesFile();
|
data = DataStoreMetaInfo.getPropertiesFile();
|
||||||
if (data.exists()) {
|
if (data.exists()) {
|
||||||
FileUtils.delete(data);
|
FileUtils.delete(data);
|
||||||
|
|||||||
@@ -72,11 +72,6 @@ public final class Settings {
|
|||||||
* contains the contents of the data directory.
|
* contains the contents of the data directory.
|
||||||
*/
|
*/
|
||||||
public static final String BATCH_UPDATE_URL = "batch.update.url";
|
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
|
* The properties key for the path where the CVE H2 database will be
|
||||||
* stored.
|
* stored.
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ public class SettingsTest {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testGetString() {
|
public void testGetString() {
|
||||||
String key = Settings.KEYS.CPE_DATA_DIRECTORY;
|
String key = Settings.KEYS.CVE_DATA_DIRECTORY;
|
||||||
String expResult = "cpe";
|
String expResult = "cve";
|
||||||
String result = Settings.getString(key);
|
String result = Settings.getString(key);
|
||||||
Assert.assertTrue(result.endsWith(expResult));
|
Assert.assertTrue(result.endsWith(expResult));
|
||||||
}
|
}
|
||||||
@@ -68,8 +68,8 @@ public class SettingsTest {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testGetFile() throws IOException {
|
public void testGetFile() throws IOException {
|
||||||
String key = Settings.KEYS.CPE_DATA_DIRECTORY;
|
String key = Settings.KEYS.CVE_DATA_DIRECTORY;
|
||||||
String expResult = "data" + File.separator + "cpe";
|
String expResult = "data" + File.separator + "cve";
|
||||||
File result = Settings.getFile(key);
|
File result = Settings.getFile(key);
|
||||||
Assert.assertTrue(result.getAbsolutePath().endsWith(expResult));
|
Assert.assertTrue(result.getAbsolutePath().endsWith(expResult));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user