From 920f77491dde4c5ac854ddf313ba1d61debae3b7 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Mon, 10 Jun 2019 16:12:16 +0200 Subject: Fixed And/Gradle path bug --- core/src/main/kotlin/Utilities/ServiceLocator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src') diff --git a/core/src/main/kotlin/Utilities/ServiceLocator.kt b/core/src/main/kotlin/Utilities/ServiceLocator.kt index 835cd34c..eda83422 100644 --- a/core/src/main/kotlin/Utilities/ServiceLocator.kt +++ b/core/src/main/kotlin/Utilities/ServiceLocator.kt @@ -67,7 +67,7 @@ object ServiceLocator { "jar" -> { val file = JarFile(URL(it.file.substringBefore("!")).toFile()) try { - val jarPath = it.file.substringAfterLast("!").removePrefix("/") // TODO: revision b265a9ffacb8f8e8e6226a9458a92697b02355a8 - removeSurrounding for Ant breaks Gradle + val jarPath = it.file.substringAfterLast("!").removePrefix("/").removeSuffix("/") file.entries() .asSequence() .filter { entry -> !entry.isDirectory && entry.path == jarPath && entry.extension == "properties" } -- cgit