From 1c53c64e212b2373d8243a1dc2df242ee2f1a079 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 31 Mar 2016 17:09:04 +0200 Subject: Ant task initialized paths before a project was set for it. Resolves #59 --- core/src/main/kotlin/ant/dokka.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/src') diff --git a/core/src/main/kotlin/ant/dokka.kt b/core/src/main/kotlin/ant/dokka.kt index f7441463..7ca402e8 100644 --- a/core/src/main/kotlin/ant/dokka.kt +++ b/core/src/main/kotlin/ant/dokka.kt @@ -27,10 +27,10 @@ class DokkaAntTask(): Task() { var skipDeprecated: Boolean = false - val compileClasspath: Path = Path(getProject()) - val sourcePath: Path = Path(getProject()) - val samplesPath: Path = Path(getProject()) - val includesPath: Path = Path(getProject()) + val compileClasspath: Path by lazy { Path(getProject()) } + val sourcePath: Path by lazy { Path(getProject()) } + val samplesPath: Path by lazy { Path(getProject()) } + val includesPath: Path by lazy { Path(getProject()) } val antSourceLinks: MutableList = arrayListOf() -- cgit