mirror of
https://github.com/corda/corda.git
synced 2024-12-23 14:52:29 +00:00
Merged in clint-driver-win-fix (pull request #285)
Driver now correctly resolves quasar path on Windows.
This commit is contained in:
commit
9496e18530
@ -196,8 +196,8 @@ class DriverDSL(
|
||||
val cl = ClassLoader.getSystemClassLoader()
|
||||
val urls = (cl as URLClassLoader).urLs
|
||||
val quasarPattern = ".*quasar.*\\.jar$".toRegex()
|
||||
val quasarPath = urls.map { it.path }.first { quasarPattern.matches(it) }
|
||||
quasarPath
|
||||
val quasarFileUrl = urls.first { quasarPattern.matches(it.path) }
|
||||
Paths.get(quasarFileUrl.toURI()).toString()
|
||||
}
|
||||
|
||||
val driverNodeConfiguration = NodeConfigurationFromConfig(
|
||||
|
Loading…
Reference in New Issue
Block a user