diff options
author | wisberg <wisberg> | 2005-06-21 18:47:46 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-06-21 18:47:46 +0000 |
commit | 50ca3c97e0f3cd0bc0d73270b2d84d2d63845a19 (patch) | |
tree | 0663c18278d8d56a266f7d4d3a21e02b57bfae66 /build/src | |
parent | c60759851b345fa8ff228a1bd626a78092caa590 (diff) | |
download | aspectj-50ca3c97e0f3cd0bc0d73270b2d84d2d63845a19.tar.gz aspectj-50ca3c97e0f3cd0bc0d73270b2d84d2d63845a19.zip |
fix release jars including testing-*
Diffstat (limited to 'build/src')
-rw-r--r-- | build/src/org/aspectj/internal/tools/build/Result.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/build/src/org/aspectj/internal/tools/build/Result.java b/build/src/org/aspectj/internal/tools/build/Result.java index ebf61394d..bd1cbc125 100644 --- a/build/src/org/aspectj/internal/tools/build/Result.java +++ b/build/src/org/aspectj/internal/tools/build/Result.java @@ -329,7 +329,7 @@ public class Result { } private void initRequiredResults() { - Module module = getModule(); + final Module module = getModule(); final Kind kind = getKind(); if (kind.assemble) { if (kind.normal) { @@ -348,18 +348,18 @@ public class Result { } // externally-required: List modules = module.requiredModules(this); - final boolean thisIsTestingModule = isTestingModule(module); + final boolean adoptTests = !kind.normal || isTestingModule(module); for (Iterator iter = modules.iterator(); iter.hasNext();) { - module = (Module) iter.next(); - if (thisIsTestingModule || !kind.normal) { + Module required = (Module) iter.next(); + if (adoptTests) { // testing builds can rely on other release and test results - requiredResults.add(module.getResult(TEST)); - requiredResults.add(module.getResult(RELEASE)); - } else { + requiredResults.add(required.getResult(TEST)); + requiredResults.add(required.getResult(RELEASE)); + } else if (!isTestingModule(required)){ // release builds can only rely on non-testing results // from non-testing modules - requiredResults.add(module.getResult(RELEASE)); - } + requiredResults.add(required.getResult(RELEASE)); + } // else skip release dependencies on testing-* (testing-util) } } |