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:
parent
36c48b3000
commit
6a5c71ecea
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue