diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-03-31 17:09:04 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-03-31 17:09:04 +0200 |
commit | 1c53c64e212b2373d8243a1dc2df242ee2f1a079 (patch) | |
tree | 34d0a7871634886ec24d4e6769b7cc412bb1cb54 | |
parent | e28279d0195e99d834fb4155618f0f3ceffbb0d2 (diff) | |
download | dokka-1c53c64e212b2373d8243a1dc2df242ee2f1a079.tar.gz dokka-1c53c64e212b2373d8243a1dc2df242ee2f1a079.tar.bz2 dokka-1c53c64e212b2373d8243a1dc2df242ee2f1a079.zip |
Ant task initialized paths before a project was set for it. Resolves #59
-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() |