CORDA-2345: Fix Windows build (#4634)

This commit is contained in:
Viktor Kolomeyko 2019-01-24 21:35:25 +00:00 committed by Shams Asari
parent 0e1c20a883
commit 0a039e9094

View File

@ -58,7 +58,7 @@ data class TestCordappImpl(val scanPackage: String, override val config: Map<Str
.scan()
.use { it.allResources }
.asSequence()
.map { it.classpathElementURL.toPath() }
.map { it.classpathElementFile.toPath() }
.filterNot { it.toString().endsWith("-tests.jar") }
.map { if (it.toString().endsWith(".jar")) it else findProjectRoot(it) }
.toSet()