buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schröder>
Subject Re: installing edge on jruby
Date Fri, 09 Apr 2010 07:01:29 GMT

we tried this:

# fix for problem with java
Buildr::Cobertura::VERSION = '1.9.2'

but then we had a problem with our asm versions that are not compatible to latest cobertura...

currently we don't use any cobertura reports, if someone is interested in code coverage he
can make his own report with eclemma in eclipse.

Am 08.04.2010 um 18:37 schrieb Alex Boisvert:

This is due to a bug in Cobertura 1.9.   We have now upgraded to on

For now, you can fix the problem by adding:

Buildr::Cobertura::REQUIRES.cobertura = ""

after require 'buildr/java/cobertura' in your buildfile.


On Thu, Apr 8, 2010 at 8:17 AM, Adam Crain

Ok, that works, but now I have a different problem. The behavior of
cobertura is different between ruby and jruby.

With jruby, I get the following exception after every project test run
with the junit test runner:

  [junit] Exception in thread "Thread-30202"
  [junit]     at
  [junit]     at
  [junit]     at
  [junit]     at
  [junit]     at
  [junit] Caused by: java.lang.IllegalStateException: Shutdown in
  [junit]     at java.lang.Shutdown.add(
  [junit]     at
  [junit]     at<clinit>(
  [junit]     ... 5 more

I suppose I could try to run ruby 1.9.x in parallel with ruby 1.8.x
(which is a requirement for another project). I remember a previous post
Where someone said the ruby 1.9.x seemed to stabilize the jrb seg fault
issues on linux. Can anyone confirm?


-----Original Message-----
From:<> []
Behalf Of Antoine Toulme
Sent: Thursday, April 08, 2010 11:03 AM
Subject: Re: installing edge on jruby

There is a different gem for java. Check our RC:

On Thu, Apr 8, 2010 at 07:42, Adam Crain

I've decided to give jruby a whirl b/c of the seg fault issues with
on Linux. I'm able to install buildr 1.3.5 on jruby just fine, but
running into issues with edge.

Jruby -S rake install

This successfully builds, the gem but fails b/c of issues with sudo
path on Unbuntu.

I then try to install the built gem manually:

adam@adam-laptop:~/code/buildr$ sudo env JAVA_HOME=$JAVA_HOME jruby -S
gem install pkg/buildr-1.4.0.gem Building native extensions.  This
take a while...

ERROR:  Error installing pkg/buildr-1.4.0.gem:

    ERROR: Failed to build gem native extension.

/home/adam/jruby/bin/jruby extconf.rb

WARNING: JRuby does not support native extensions or the `mkmf'

       Check<> for alternatives.

extconf.rb:20:in `include': undefined method `+' for nil:NilClass

    from extconf.rb:38

Gem files will remain installed in
/home/adam/jruby-1.4.0/lib/ruby/gems/1.8/gems/rjb-1.2.0 for

Results logged to


Any ideas?


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