Skip to content

Commit

Permalink
Fix output dir creation in ConcatFileTask (#91568) (#91570)
Browse files Browse the repository at this point in the history
  • Loading branch information
breskeby authored Nov 14, 2022
1 parent ef93cbb commit 4a3d7c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void setAdditionalLines(List<String> additionalLines) {
@TaskAction
public void concatFiles() throws IOException {
if (getHeaderLine() != null) {
getTarget().mkdirs();
getTarget().getParentFile().mkdirs();
Files.write(getTarget().toPath(), (getHeaderLine() + '\n').getBytes(StandardCharsets.UTF_8));
}

Expand Down

0 comments on commit 4a3d7c2

Please sign in to comment.