mirror of
https://github.com/corda/corda.git
synced 2024-12-21 13:57:54 +00:00
Fix for running tests from Idea (#3425)
This commit is contained in:
parent
21d06a8aa9
commit
868763f82b
@ -135,7 +135,9 @@ 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 ->
|
||||
!url.toString().contains("main/$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…
Reference in New Issue
Block a user