1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Forgot a mkdirs().

This commit is contained in:
Cedric Beust 2016-04-29 02:54:02 -08:00
parent 3f4d4bd41e
commit 13e7aae4e8

View file

@ -55,6 +55,8 @@ class KotlinCompiler @Inject constructor(
// create a directory if the output is not a jar file // create a directory if the output is not a jar file
if (! outputDir.endsWith(".jar")) { if (! outputDir.endsWith(".jar")) {
File(outputDir).mkdirs() File(outputDir).mkdirs()
} else {
File(outputDir).parentFile.mkdirs()
} }
val allArgs = arrayListOf( val allArgs = arrayListOf(
"-d", outputDir, "-d", outputDir,