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

Trying to debug the NPE.

This commit is contained in:
Cedric Beust 2016-05-07 07:48:00 -07:00
parent 36c48b3000
commit 6a5c71ecea

View file

@ -1,6 +1,7 @@
package com.beust.kobalt.internal.build package com.beust.kobalt.internal.build
import com.beust.kobalt.misc.KFiles import com.beust.kobalt.misc.KFiles
import com.beust.kobalt.misc.log
import java.io.File import java.io.File
import java.nio.file.Files import java.nio.file.Files
import java.nio.file.Path import java.nio.file.Path
@ -28,5 +29,8 @@ class BuildFile(val path: Path, val name: String, val realPath: Path = path) {
* @return the absolute directory of this projects' location, assuming the build file is in * @return the absolute directory of this projects' location, assuming the build file is in
* $project/kobalt/src/Build.kt. * $project/kobalt/src/Build.kt.
*/ */
val absoluteDir = path.parent.parent.parent.toFile() val absoluteDir : File get() {
log(1, "Current path: $path")
return path.parent.parent.parent.toFile()
}
} }