Skip to content

Commit

Permalink
Merge pull request #28 from leonard84/fix-missing-target-exception
Browse files Browse the repository at this point in the history
Create target dir if it is missing
  • Loading branch information
timgifford authored Aug 25, 2016
2 parents 45e650d + e28f6ac commit 2189b03
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ private File getOutputFile(final ExecutionEvent event) {
if (file.isAbsolute()) {
file.getParentFile().mkdirs();
} else {
file = new File(new File("target"), output);
File parent = new File("target");
parent.mkdirs();
file = new File(parent, output);
}
return file;
}
Expand Down

0 comments on commit 2189b03

Please sign in to comment.