mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-15 00:03:43 +01:00
fixed issue #505
This commit is contained in:
@@ -1033,7 +1033,7 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
|
||||
file = new File(writeTo, dataFileName);
|
||||
}
|
||||
final File parent = file.getParentFile();
|
||||
if (!parent.isDirectory() && parent.mkdirs()) {
|
||||
if (!parent.isDirectory() && !parent.mkdirs()) {
|
||||
getLog().error(String.format("Directory '%s' does not exist and cannot be created; unable to write data file.",
|
||||
parent.getAbsolutePath()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user