mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-04-10 18:57:20 +02:00
additional checks added as part of issue #257
Former-commit-id: 9a9154adcc42688f600a9a6cce49a919fd08f482
This commit is contained in:
@@ -963,6 +963,13 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
|
||||
} else {
|
||||
file = new File(writeTo, dataFileName);
|
||||
}
|
||||
File parent = file.getParentFile();
|
||||
if (!parent.isDirectory()) {
|
||||
if (parent.mkdirs()) {
|
||||
getLog().error(String.format("Directory '%s' does not exist and cannot be created; unable to write data file.", parent.getAbsolutePath()));
|
||||
}
|
||||
}
|
||||
|
||||
OutputStream os = null;
|
||||
OutputStream bos = null;
|
||||
ObjectOutputStream out = null;
|
||||
|
||||
Reference in New Issue
Block a user