mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-05-01 20:54:44 +02:00
updated tests to utilize temp directory
Former-commit-id: 984f69e2528d37586a2d7d981d17671e17e7ca0d
This commit is contained in:
@@ -223,7 +223,7 @@ public class DataStoreMetaInfo {
|
||||
*
|
||||
* @return the properties file
|
||||
*/
|
||||
public File getPropertiesFile() {
|
||||
public static File getPropertiesFile() {
|
||||
final File dataDirectory = Settings.getFile(Settings.KEYS.DATA_DIRECTORY);
|
||||
final File file = new File(dataDirectory, UPDATE_PROPERTIES_FILE);
|
||||
return file;
|
||||
|
||||
@@ -260,7 +260,7 @@ public class DatabaseUpdater implements CachedWebDataSource {
|
||||
if (data.exists()) {
|
||||
FileUtils.delete(data);
|
||||
}
|
||||
data = properties.getPropertiesFile();
|
||||
data = DataStoreMetaInfo.getPropertiesFile();
|
||||
if (data.exists()) {
|
||||
FileUtils.delete(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user