From 5a72e1db1913f297eceb7fb056667b11195754d7 Mon Sep 17 00:00:00 2001 From: Constantine Plotnikov Date: Wed, 16 Jun 2010 15:37:30 +0400 Subject: [PATCH] ant generation: production classes are included in the test classpath --- .../src/com/intellij/compiler/ant/ModuleChunkClasspath.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/compiler/impl/src/com/intellij/compiler/ant/ModuleChunkClasspath.java b/java/compiler/impl/src/com/intellij/compiler/ant/ModuleChunkClasspath.java index b8413cbafcbf..d9ff911ebcb3 100644 --- a/java/compiler/impl/src/com/intellij/compiler/ant/ModuleChunkClasspath.java +++ b/java/compiler/impl/src/com/intellij/compiler/ant/ModuleChunkClasspath.java @@ -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; }