buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <alex.boisv...@gmail.com>
Subject Re: installing edge on jruby
Date Thu, 08 Apr 2010 16:37:53 GMT
This is due to a bug in Cobertura 1.9.   We have now upgraded to 1.9.4.1 on
trunk.

For now, you can fix the problem by adding:

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

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

alex


On Thu, Apr 8, 2010 at 8:17 AM, Adam Crain
<adam.crain@plymouthsystems.com>wrote:

> 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"
> java.lang.ExceptionInInitializerError
>    [junit]     at java.io.File.deleteOnExit(File.java:939)
>    [junit]     at
> net.sourceforge.cobertura.util.FileLocker.<init>(FileLocker.java:80)
>    [junit]     at
> net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData
> (ProjectData.java:230)
>    [junit]     at
> net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:31)
>    [junit]     at java.lang.Thread.run(Thread.java:619)
>    [junit] Caused by: java.lang.IllegalStateException: Shutdown in
> progress
>    [junit]     at java.lang.Shutdown.add(Shutdown.java:62)
>    [junit]     at
> java.lang.System$2.registerShutdownHook(System.java:1146)
>    [junit]     at
> java.io.DeleteOnExitHook.<clinit>(DeleteOnExitHook.java:20)
>    [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?
>
> Adam
>
>
>
> -----Original Message-----
> From: antoine.toulme@gmail.com [mailto:antoine.toulme@gmail.com] On
> Behalf Of Antoine Toulme
> Sent: Thursday, April 08, 2010 11:03 AM
> To: users@buildr.apache.org
> Subject: Re: installing edge on jruby
>
> There is a different gem for java. Check our RC:
> buildr-1.4.0-java.gem<http://people.apache.org/~toulmean/buildr/1.4.0/di
> st/buildr-1.4.0-java.gem<http://people.apache.org/%7Etoulmean/buildr/1.4.0/di%0Ast/buildr-1.4.0-java.gem>
> >
>
> On Thu, Apr 8, 2010 at 07:42, Adam Crain
> <adam.crain@plymouthsystems.com>wrote:
>
> > I've decided to give jruby a whirl b/c of the seg fault issues with
> rjb
> > 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
> and
> > 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
> could
> > 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'
> library.
> >
> >         Check wiki.jruby.org for alternatives.
> >
> > extconf.rb:20:in `include': undefined method `+' for nil:NilClass
> > (NoMethodError)
> >
> >      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
> inspection.
> >
> > Results logged to
> >
> /home/adam/jruby-1.4.0/lib/ruby/gems/1.8/gems/rjb-1.2.0/ext/gem_make.out
> >
> >
> >
> >
> >
> > Any ideas?
> >
> > -Adam
> >
> >
> >
> >
>

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