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