[Editor] Enable creating directory path when copying file to JAR archive
This commit is contained in:
@@ -35,6 +35,7 @@ class ZipBasedJarPackager : JarPackager {
|
|||||||
|
|
||||||
FileSystems.newFileSystem(uri, env).use { jar ->
|
FileSystems.newFileSystem(uri, env).use { jar ->
|
||||||
val path = jar.getPath(Paths.get(root, file.name).normalize().toString())
|
val path = jar.getPath(Paths.get(root, file.name).normalize().toString())
|
||||||
|
Files.createDirectories(path.parent)
|
||||||
file.inputStream().use { fis -> Files.copy(fis, path) }
|
file.inputStream().use { fis -> Files.copy(fis, path) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user