Create output directory if it does not exist.
FileOutputStreams will not automatically create the necessary directories, so we have to do it.
This commit is contained in:
parent
a5ebbbfa37
commit
e78721546a
@ -172,6 +172,9 @@ public class JarRemapper extends CustomRemapper {
|
||||
if (jar == null) {
|
||||
return;
|
||||
}
|
||||
if (!target.getParentFile().exists()) {
|
||||
target.getParentFile().mkdirs();
|
||||
}
|
||||
ClassRepo repo = new JarRepo(jar);
|
||||
try (JarOutputStream out = new JarOutputStream(new FileOutputStream(target))) {
|
||||
Set<String> jarEntries = jar.getEntryNames();
|
||||
|
Loading…
Reference in New Issue
Block a user