aboutsummaryrefslogtreecommitdiff
path: root/ant
diff options
context:
space:
mode:
Diffstat (limited to 'ant')
-rw-r--r--ant/src/dokka.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ant/src/dokka.kt b/ant/src/dokka.kt
index a6dccfb7..882dbdb7 100644
--- a/ant/src/dokka.kt
+++ b/ant/src/dokka.kt
@@ -89,7 +89,7 @@ class DokkaAntTask(): Task() {
}
val url = javaClass<DokkaAntTask>().getResource("/org/jetbrains/dokka/ant/DokkaAntTask.class")
- val jarRoot = url.getPath().substringBefore("!/").trimLeading("file:")
+ val jarRoot = url.getPath().substringBefore("!/").removePrefix("file:")
val generator = DokkaGenerator(
AntLogger(this),