mirror of
https://github.com/corda/corda.git
synced 2025-02-15 15:12:46 +00:00
Fix merge
This commit is contained in:
parent
48de90ac77
commit
0ecacb894e
@ -109,7 +109,7 @@ class CordappLoader private constructor(private val cordappJarPaths: List<Restri
|
||||
customSchemas = setOf(),
|
||||
jarPath = ContractUpgradeFlow.javaClass.protectionDomain.codeSource.location, // Core JAR location
|
||||
info = CordappImpl.Info("corda-core", versionInfo.vendor, versionInfo.releaseVersion),
|
||||
allFlows = coreRPCFlows,
|
||||
allFlows = listOf(),
|
||||
jarHash = SecureHash.allOnesHash
|
||||
)
|
||||
|
||||
@ -183,7 +183,8 @@ class CordappLoader private constructor(private val cordappJarPaths: List<Restri
|
||||
return this::class.java.classLoader.getResources(resource)
|
||||
.asSequence()
|
||||
// This is to only scan classes from test folders.
|
||||
.filter { url -> listOf("main", "production").none { url.toString().contains("$it/$resource") } || listOf("net.corda.core", "net.corda.node", "net.corda.finance").none { scanPackage.startsWith(it) } }
|
||||
.filter { url ->
|
||||
listOf("main", "production/classes").none { url.toString().contains("$it/$resource") } || listOf("net.corda.core", "net.corda.node", "net.corda.finance").none { scanPackage.startsWith(it) } }
|
||||
.map { url ->
|
||||
if (url.protocol == "jar") {
|
||||
// When running tests from gradle this may be a corda module jar, so restrict to scanPackage:
|
||||
|
Loading…
x
Reference in New Issue
Block a user