mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-05-03 05:34:52 +02:00
updated Settigns to get the temp directory
Former-commit-id: e2207012b838180c9432475647f74e8a7a100196
This commit is contained in:
@@ -52,7 +52,7 @@ public class DatabaseUpdater_1_Test {
|
||||
old12 = Settings.getString(Settings.KEYS.CVE_MODIFIED_12_URL);
|
||||
old20 = Settings.getString(Settings.KEYS.CVE_MODIFIED_20_URL);
|
||||
|
||||
File tmp = Settings.getFile(Settings.KEYS.TEMP_DIRECTORY);
|
||||
File tmp = Settings.getTempDirectory();
|
||||
if (!tmp.exists()) {
|
||||
tmp.mkdirs();
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public class DatabaseUpdater_2_Test {
|
||||
Settings.removeProperty(Settings.KEYS.CVE_MODIFIED_12_URL);
|
||||
Settings.removeProperty(Settings.KEYS.CVE_MODIFIED_20_URL);
|
||||
|
||||
File tmp = Settings.getFile(Settings.KEYS.TEMP_DIRECTORY);
|
||||
File tmp = Settings.getTempDirectory();
|
||||
if (!tmp.exists()) {
|
||||
tmp.mkdirs();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user