mirror of
https://github.com/corda/corda.git
synced 2025-01-30 08:04:16 +00:00
Merge remote-tracking branch 'origin/release/os/4.5' into rni/notick/os-45-46-docs-db
This commit is contained in:
commit
d928c29019
@ -20,7 +20,7 @@ quasarVersion11=0.8.0_r3
|
||||
jdkClassifier11=jdk11
|
||||
proguardVersion=6.1.1
|
||||
bouncycastleVersion=1.66
|
||||
classgraphVersion=4.8.78
|
||||
classgraphVersion=4.8.89
|
||||
disruptorVersion=3.4.2
|
||||
typesafeConfigVersion=1.3.4
|
||||
jsr305Version=3.0.2
|
||||
|
@ -348,7 +348,7 @@ class JarScanningCordappLoader private constructor(private val cordappJarPaths:
|
||||
val cordappElement = cordappJarPath.url.toString()
|
||||
logger.info("Scanning CorDapp in $cordappElement")
|
||||
val scanResult = ClassGraph()
|
||||
.filterClasspathElements { elt -> elt == cordappElement }
|
||||
.filterClasspathElementsByURL { elt -> elt == cordappJarPath.url }
|
||||
.overrideClassLoaders(appClassLoader)
|
||||
.ignoreParentClassLoaders()
|
||||
.enableAllInfo()
|
||||
|
@ -50,12 +50,12 @@ data class CustomCordapp(
|
||||
@VisibleForTesting
|
||||
internal fun packageAsJar(file: Path) {
|
||||
val classGraph = ClassGraph()
|
||||
if(packages.isNotEmpty()){
|
||||
classGraph.whitelistPaths(*packages.map { it.replace('.', '/') }.toTypedArray())
|
||||
if (packages.isNotEmpty()) {
|
||||
classGraph.acceptPaths(*packages.map { it.replace('.', '/') }.toTypedArray())
|
||||
}
|
||||
if (classes.isNotEmpty()) {
|
||||
classes.forEach { classGraph.addClassLoader(it.classLoader) }
|
||||
classGraph.whitelistClasses(*classes.map { it.name }.toTypedArray())
|
||||
classGraph.acceptClasses(*classes.map { it.name }.toTypedArray())
|
||||
}
|
||||
|
||||
classGraph.enableClassInfo().pooledScan().use { scanResult ->
|
||||
|
@ -56,7 +56,7 @@ data class TestCordappImpl(val scanPackage: String, override val config: Map<Str
|
||||
|
||||
private fun findRootPaths(scanPackage: String): Set<Path> {
|
||||
return packageToRootPaths.computeIfAbsent(scanPackage) {
|
||||
val classGraph = ClassGraph().whitelistPaths(scanPackage.replace('.', '/'))
|
||||
val classGraph = ClassGraph().acceptPaths(scanPackage.replace('.', '/'))
|
||||
classGraph.pooledScan().use { scanResult ->
|
||||
scanResult.allResources
|
||||
.asSequence()
|
||||
|
Loading…
x
Reference in New Issue
Block a user