mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-20 00:04:27 +01:00
updated tests to utilize temp directory
Former-commit-id: 072c2f51dd0077f3e6c34c3bd6340e9da0a9360c
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