buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Crain" <adam.cr...@plymouthsystems.com>
Subject RE: installing edge on jruby
Date Thu, 08 Apr 2010 15:17:28 GMT
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>

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
View raw message