Skip to content

Commit 4a3d7c2

Browse files
authored
Fix output dir creation in ConcatFileTask (#91568) (#91570)
1 parent ef93cbb commit 4a3d7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ConcatFilesTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void setAdditionalLines(List<String> additionalLines) {
8383
@TaskAction
8484
public void concatFiles() throws IOException {
8585
if (getHeaderLine() != null) {
86-
getTarget().mkdirs();
86+
getTarget().getParentFile().mkdirs();
8787
Files.write(getTarget().toPath(), (getHeaderLine() + '\n').getBytes(StandardCharsets.UTF_8));
8888
}
8989

0 commit comments

Comments
 (0)