mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-18 15:24:13 +01:00
updated initialize to not ignore errors generaged when creating directories
Former-commit-id: eafcc5c7c7e5e2cad4ec1a2639b1aa95215227d6
This commit is contained in:
@@ -145,7 +145,10 @@ public class ArchiveAnalyzer extends AbstractAnalyzer implements Analyzer {
|
|||||||
public void initialize() throws Exception {
|
public void initialize() throws Exception {
|
||||||
final File baseDir = Settings.getTempDirectory();
|
final File baseDir = Settings.getTempDirectory();
|
||||||
if (!baseDir.exists()) {
|
if (!baseDir.exists()) {
|
||||||
baseDir.mkdirs();
|
if (!baseDir.mkdirs()) {
|
||||||
|
final String msg = String.format("Unable to make a temporary folder '%s'", baseDir.getPath());
|
||||||
|
throw new AnalysisException(msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
tempFileLocation = File.createTempFile("check", "tmp", baseDir);
|
tempFileLocation = File.createTempFile("check", "tmp", baseDir);
|
||||||
if (!tempFileLocation.delete()) {
|
if (!tempFileLocation.delete()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user