Merged in clint-driver-win-fix (pull request #285)

Driver now correctly resolves quasar path on Windows.
This commit is contained in:
Clinton Alexander 2016-08-16 14:27:18 +01:00
commit 9496e18530

View File

@ -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(