Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

Commit 06e6db9

Browse files
authored
Merge pull request #29 from dsyer/master
Be defensive about creating directories for files
2 parents cf29afb + a1fab6f commit 06e6db9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/apache/maven/wrapper/Installer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ public void unzip(File zip, File dest) throws IOException {
170170
continue;
171171
}
172172

173+
new File(dest, entry.getName()).getParentFile().mkdirs();
173174
copyInputStream(zipFile.getInputStream(entry), new BufferedOutputStream(new FileOutputStream(new File(dest, entry.getName()))));
174175
}
175176
zipFile.close();

0 commit comments

Comments
 (0)