aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-04-29 21:33:03 +0200
committerDmitry Jemerov <yole@jetbrains.com>2016-04-29 21:33:03 +0200
commit3ce272588136267971f30160b274402e6f04b4f4 (patch)
tree7afffa03e44deca0efe2aa9cb604e41d9d80df82 /core
parentc0692faf9566be3ee26117f3cc08d0a90d3ad528 (diff)
downloaddokka-3ce272588136267971f30160b274402e6f04b4f4.tar.gz
dokka-3ce272588136267971f30160b274402e6f04b4f4.tar.bz2
dokka-3ce272588136267971f30160b274402e6f04b4f4.zip
in order to work with shadowjar, locate self using antlib.xml and not a specific class FQ name
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/ant/dokka.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/ant/dokka.kt b/core/src/main/kotlin/ant/dokka.kt
index 7ca402e8..9a0aec0c 100644
--- a/core/src/main/kotlin/ant/dokka.kt
+++ b/core/src/main/kotlin/ant/dokka.kt
@@ -84,7 +84,7 @@ class DokkaAntTask(): Task() {
SourceLinkDefinition(File(path).canonicalFile.absolutePath, url, it.lineSuffix)
}
- val url = DokkaAntTask::class.java.getResource("/org/jetbrains/dokka/ant/DokkaAntTask.class")
+ val url = DokkaAntTask::class.java.getResource("/dokka-antlib.xml")
val jarRoot = url.path.substringBefore("!/").removePrefix("file:")
val generator = DokkaGenerator(