Fix merge

This commit is contained in:
Tudor Malene 2018-06-01 17:14:27 +01:00 committed by tudor.malene@gmail.com
parent 48de90ac77
commit 0ecacb894e

View File

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