aboutsummaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorZubakov <aleks.zubakov@gmail.com>2018-08-27 15:08:28 +0300
committerZubakov <aleks.zubakov@gmail.com>2018-08-27 15:08:28 +0300
commitb265a9ffacb8f8e8e6226a9458a92697b02355a8 (patch)
tree1f8b2e941a7a3e766922372a50d98e4d73045cb4 /core/src/main
parentb67828585356db1cf0ac95a1a1291a7bf2d78684 (diff)
downloaddokka-b265a9ffacb8f8e8e6226a9458a92697b02355a8.tar.gz
dokka-b265a9ffacb8f8e8e6226a9458a92697b02355a8.tar.bz2
dokka-b265a9ffacb8f8e8e6226a9458a92697b02355a8.zip
Ant runner default external links and classpath resolving fix
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/kotlin/Utilities/ServiceLocator.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Utilities/ServiceLocator.kt b/core/src/main/kotlin/Utilities/ServiceLocator.kt
index 83c4c65c..fca08f38 100644
--- a/core/src/main/kotlin/Utilities/ServiceLocator.kt
+++ b/core/src/main/kotlin/Utilities/ServiceLocator.kt
@@ -70,7 +70,7 @@ object ServiceLocator {
"jar" -> {
val file = JarFile(URL(it.file.substringBefore("!")).toFile())
try {
- val jarPath = it.file.substringAfterLast("!").removePrefix("/")
+ val jarPath = it.file.substringAfterLast("!").removeSurrounding("/")
file.entries()
.asSequence()
.filter { entry -> !entry.isDirectory && entry.path == jarPath && entry.extension == "properties" }