[minor] Fix URL conversion to the file

possibly fixes the exception from https://stackoverflow.com/questions/57727150/kotlin-script-engine-with-spring-boot-self-running-war
This commit is contained in:
Ilya Chernikov
2019-10-01 15:13:39 +02:00
parent 3fec15202f
commit cb5622fc8b
2 changed files with 7 additions and 3 deletions
@@ -52,7 +52,7 @@ class ClassPathTest : TestCase() {
+ jar.toURI().toURL()).toTypedArray(),
null
)
val cp = cl.classPathFromTypicalResourceUrls().toList()
val cp = cl.classPathFromTypicalResourceUrls().toList().map { it.canonicalFile }
Assert.assertTrue(cp.contains(jar.canonicalFile))
for (el in emulatedClasspath) {