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