ant generation: production classes are included in the test classpath

This commit is contained in:
Constantine Plotnikov
2010-06-16 15:39:37 +04:00
parent c26b3843d7
commit 5a72e1db19
@@ -115,7 +115,7 @@ public class ModuleChunkClasspath extends Path {
// needed for compilation classpath only
if ((orderEntry instanceof ModuleSourceOrderEntry)) {
// this is the entry for outpath of the currently processed module
if (dependencyLevel == 0 || chunk.contains(module)) {
if (!generateTestClasspath && (dependencyLevel == 0 || chunk.contains(module))) {
// the root module is never included
continue;
}