buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomas Carlsson" <>
Subject running JUnit tests fails with buildr trunk and JRuby
Date Mon, 07 Apr 2008 18:09:45 GMT
buildr-trunk, JRuby 1.1, Windows XP

I set up a very simple test project with one java class and one test java
class with Junit annotations. Running "jruby -S buildr test" fails with:
java.lang.IllegalArgumentException: null

Parts of --trace is included below, it indicates a null ref when looking up
the ant.jar location if I'm not mistaken.

Anyone seen this before? Anyone been able to run JUnit tests with buildr on


** Invoke buildr-test-test:test:setup (first_time)
** Execute buildr-test-test:test:setup
** Execute buildr-test-test:test
Running tests in buildr-test-test
redefining Project
D, [2008-04-07T17:43:57.413434 #3380] DEBUG -- : Apache Ant version 1.7.0
compiled on December 13 2006
** Invoke buildr-test-test:test:teardown (first_time)
** Execute buildr-test-test:test:teardown
rake aborted!
java.lang.IllegalArgumentException: null
java/net/ `create'
sun/reflect/ `invoke0'
sun/reflect/ `invoke'
sun/reflect/ `invoke'
java/lang/reflect/ `invoke'
org/apache/tools/ant/launch/ `fromURI'
org/apache/tools/ant/launch/ `getResourceSource'
org/apache/tools/ant/launch/ `getClassSource'
org/apache/tools/ant/ `setAntLib'
org/apache/tools/ant/ `initProperties'
org/apache/tools/ant/ `init'
sun/reflect/ `invoke0'
sun/reflect/ `invoke'
sun/reflect/ `invoke'
java/lang/reflect/ `invoke'
org/jruby/javasupport/ `invokeWithExceptionHandling'

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message