Rake doesn't run under JRuby 1.6.0, works under Ruby 1.8.7

Hi guys!

I have a Rakefile, which runs fine under Ruby 1.8.7 (2010-12-23
patchlevel 330) [i386-mingw32]. When I try to run it under JRuby 1.6.0 (
I am using the complete jar, and I’m invoking rake via “java -jar
jruby.jar -S rake” ), it fails with the following stacktrace:

  (RegexpError) invalid control-code syntax: ./Rakefile
  RegexpError: (RegexpError) invalid control-code syntax: ./Rakefile
    standard_exception_handling at

file:jruby.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2082
find at org/jruby/RubyEnumerable.java:567
standard_exception_handling at
file:jruby.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2082
run at
file:jruby.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998
(root) at
file:jruby.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
load at org/jruby/RubyKernel.java:1062
(root) at
file:jruby.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:19
load at org/jruby/RubyKernel.java:1062
rake at
file:/jruby.jar!/META-INF/jruby.home/bin/rake:12
call at org/jruby/RubyProc.java:268
(root) at rake:1

The same problem isn’t reproducible under jruby 1.5.2 (ruby 1.8.7
patchlevel 249) (2010-08-20 6586) (Java HotSpot™ Client VM 1.6.0_24)
[x86-java].

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs