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

Merge pull request #236 from DevCharly/mkdirs-fix

fixed creation of classes directory at wrong parent
This commit is contained in:
Cedric Beust 2016-06-07 08:49:37 -07:00
commit f07ae9cec6
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ class CompilerUtils @Inject constructor(val files: KFiles,
val buildDirectory = if (isTest) File(project.buildDirectory, KFiles.TEST_CLASSES_DIR)
else File(project.classesDir(context))
buildDirectory.mkdirs()
File(project.directory, buildDirectory.path).mkdirs()
val initialSourceDirectories = ArrayList<File>(sourceDirectories)
// Source directories from the contributors

View file

@ -73,7 +73,7 @@ class Io(val dryRun: Boolean = false) {
}
fun mkdir(dir: File) {
log("rm -rf $dir")
log("mkdir $dir")
if (! dryRun) {
dir.mkdirs()
}