From 0fc412aae215c7e54b99bc522ba656b12db5d1c5 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 13 May 2016 11:16:35 +0200 Subject: don't add dokka jar to DokkaGenerator classpath --- core/src/main/kotlin/ant/dokka.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'core/src/main/kotlin/ant/dokka.kt') diff --git a/core/src/main/kotlin/ant/dokka.kt b/core/src/main/kotlin/ant/dokka.kt index 9a0aec0c..38dc543b 100644 --- a/core/src/main/kotlin/ant/dokka.kt +++ b/core/src/main/kotlin/ant/dokka.kt @@ -84,12 +84,9 @@ class DokkaAntTask(): Task() { SourceLinkDefinition(File(path).canonicalFile.absolutePath, url, it.lineSuffix) } - val url = DokkaAntTask::class.java.getResource("/dokka-antlib.xml") - val jarRoot = url.path.substringBefore("!/").removePrefix("file:") - val generator = DokkaGenerator( AntLogger(this), - listOf(jarRoot) + compileClasspath.list().toList(), + compileClasspath.list().toList(), sourcePath.list().toList(), samplesPath.list().toList(), includesPath.list().toList(), -- cgit