maybe there is some other problem, but i don't know where to look.

i added some more logging and the groovy compiler seems to get all the 
information needed:

ant.taskdef :classpath
["/Users/peterschroder/.m2/repository/org/codehaus/groovy/groovy/1.5.3/groovy-1.5.3.jar",
 
"/Users/peterschroder/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar",
 "/Users/peterschroder/.m2/repository/asm/asm/2.2/asm-2.2.jar", 
"/Users/peterschroder/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar", 
"/Users/peterschroder/.m2/repository/junit/junit/4.4/junit-4.4.jar", 
"/Users/peterschroder/Documents/workspace/JefwFileIO/target/main/classes", 
"/Users/peterschroder/Documents/workspace/JefwFileIO/target/main/resources"]
ant.pathelement :path
"/Users/peterschroder/.m2/repository/org/codehaus/groovy/groovy/1.5.3/groovy-1.5.3.jar"
"/Users/peterschroder/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar"
"/Users/peterschroder/.m2/repository/asm/asm/2.2/asm-2.2.jar"
"/Users/peterschroder/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar"
"/Users/peterschroder/.m2/repository/junit/junit/4.4/junit-4.4.jar"  <== THIS 
IS WHERE junit/framework/TestCase lives!
"/Users/peterschroder/Documents/workspace/JefwFileIO/target/main/classes"
"/Users/peterschroder/Documents/workspace/JefwFileIO/target/main/resources"
  [groovyc] Compiling 26 source files to 
/Users/peterschroder/Documents/workspace/JefwFileIO/target/test/classes
E, [2010-02-24T11:28:06.747000 #1163] ERROR -- : Error instantiating 'groovyc' 
task: java.lang.NoClassDefFoundError: junit/framework/TestCase
Buildr aborted!
java.lang.NoClassDefFoundError: junit/framework/TestCase

any ideas?

Am 24.02.2010 um 11:16 schrieb Peter Schröder:

> hi,
> 
> i have a problem migrating an existing groovy project from ant to buildr.
> 
> while defining a 
> 
>  test.with 'junit:junit:jar:4.4'
> 
> it wont get pushed down to the groovy compiler.
> 
> please see the attachement for more information.
> 
> kind reagards,
> peter
> 
> <groovy_classpath.txt>

Reply via email to