aboutsummaryrefslogtreecommitdiff
path: root/ant/src/dokka.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-05-29 13:52:43 +0200
committerDmitry Jemerov <yole@jetbrains.com>2015-05-29 13:52:43 +0200
commit64414ce984bc86e09b8724adbd01f1cb2646c17e (patch)
tree802710da5009b0b86519cc7cde9cdb6685cc7c99 /ant/src/dokka.kt
parent2fc80c4aae0d2957b34b176b9a2a48cb5089f41c (diff)
downloaddokka-64414ce984bc86e09b8724adbd01f1cb2646c17e.tar.gz
dokka-64414ce984bc86e09b8724adbd01f1cb2646c17e.tar.bz2
dokka-64414ce984bc86e09b8724adbd01f1cb2646c17e.zip
apply code cleanup; fix couple of deprecations manually
Diffstat (limited to 'ant/src/dokka.kt')
-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),