From 3ce272588136267971f30160b274402e6f04b4f4 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 29 Apr 2016 21:33:03 +0200 Subject: in order to work with shadowjar, locate self using antlib.xml and not a specific class FQ name --- core/src/main/kotlin/ant/dokka.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/main/kotlin/ant') 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( -- cgit