Normally the target/ directory already exists of course, but if you e.g.
run just "mvn process-sources" then, on some project, the target/
directory may not exist (yet) - and thus this code must ensure it
creates it.
Change-Id: I764e3673433a4abb6819b883f24d7622ac2f352b
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
protected void updateMessagesReportFile(LogMessageOccurence log) {
try {
final File file = getLogMessagesReportFile();
+ file.getParentFile().mkdirs();
if (file.exists()) {
Files.append(log.toString() + "\n", file, StandardCharsets.UTF_8);
} else {