diff options
-rw-r--r-- | build-docs.xml | 6 | ||||
-rw-r--r-- | core/src/main/kotlin/ant/dokka.kt | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/build-docs.xml b/build-docs.xml index 71d4c19f..c2d51bcf 100644 --- a/build-docs.xml +++ b/build-docs.xml @@ -7,8 +7,12 @@ </classpath> </typedef> + <path id="dokka.source.path"> + <pathelement location="core/src/main/kotlin"/> + </path> + <target name="document"> - <dokka src="core/src/main/kotlin" outputdir="doc" modulename="dokka"> + <dokka srcref="dokka.source.path" outputdir="doc" modulename="dokka"> <sourcelink path="." url="https://github.com/kotlin/dokka/blob/master" linesuffix="#L"/> </dokka> </target> 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<AntSourceLinkDefinition> = arrayListOf() |