mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
Adjust resolution of byteman jar to use java 11 compatible mechanism.
This commit is contained in:
@ -123,10 +123,10 @@ class DriverDSLImpl(
|
|||||||
private val quasarJarPath: String by lazy { resolveJar("co.paralleluniverse.fibers.Suspendable") }
|
private val quasarJarPath: String by lazy { resolveJar("co.paralleluniverse.fibers.Suspendable") }
|
||||||
|
|
||||||
private val bytemanJarPath: String? by lazy {
|
private val bytemanJarPath: String? by lazy {
|
||||||
val maybeResolvedJar = resolveJar(".*byteman-\\d.*\\.jar$", verbose = false)
|
try {
|
||||||
when (maybeResolvedJar) {
|
resolveJar("org.jboss.byteman.agent.Transformer")
|
||||||
is Try.Success -> maybeResolvedJar.getOrThrow()
|
} catch (e: Exception) {
|
||||||
is Try.Failure -> null
|
null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user