Fixing Integration Test build when top-level source directory is not

named "ghidra" (fixes #876).
This commit is contained in:
Ryan Kurtz 2019-08-06 14:13:15 -04:00
parent 78a551b6d8
commit 0f33a90bad

View file

@ -14,19 +14,16 @@ dependencies {
rootProject.subprojects { p ->
p.plugins.withType(JavaPlugin) {
def projectPath = p.projectDir.path.replace(File.separator, "/")
if (projectPath.contains("ghidra/Ghidra")) {
if (projectPath.contains("/Framework/") ||
projectPath.contains("/Features/") ||
projectPath.contains("/Processors/")) {
if (projectPath.startsWith(ghidraPath) && (
projectPath.contains("/Framework/") ||
projectPath.contains("/Features/") ||
projectPath.contains("/Processors/"))) {
compile p
}
compile p
}
}
}
// some tests use classes in Base/src/test and test.slow
testCompile project(path: ':Base', configuration: 'testArtifacts')
}