Hi!
I am using both Scala and Java in a buildr project.
The java code has source+target = 1.6
However, to get that to work, I must use the newest Scala, 2.10.0 since older 
scala only supports target 1.5.

When I run buildr, it crashes since the Specs2 case statement in bdd.rb (line 
140)  does not handle 2.10 (

Buildr aborted!
NameError : uninitialized constant Buildr::Scala::Specs2::Scala
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in 
`const_missing'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.9/lib/buildr/scala/bdd.rb:140
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.9/lib/buildr/scala.rb:22
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
/Users/mange/git/ScalaTest/buildfile.rb:5
/Library/Ruby/Gems/1.8/gems/buildr-1.4.9/lib/buildr/core/application.rb:424:in 
`load'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.9/lib/buildr/core/application.rb:424:in 
`raw_load_buildfile'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.9/lib/buildr/core/application.rb:224:in 
`load_buildfile'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.9/lib/buildr/core/application.rb:534:in 
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.9/lib/buildr/core/application.rb:219:in 
`load_buildfile'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.9/lib/buildr/core/application.rb:129:in 
`run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.9/lib/buildr/core/application.rb:534:in 
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.9/lib/buildr/core/application.rb:127:in 
`run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.9/bin/buildr:19
/usr/bin/buildr:23:in `load'
/usr/bin/buildr:23

I did a quick patch and added a "when" statement for 2.10, but that did not 
help, I got:
Building ScalaTest
Compiling ScalaTest into /Users/mange/git/ScalaTest/target/classes
Buildr aborted!
RuntimeError : Scala compiler crashed:
#<NoClassDefFoundError: scala/reflect/internal/Trees>

I think it has to do with some compiler classes having moved in Scala 2.10  .

Is there a quick solution for this?
I'd love to keep using buildr and not having to use another build tool.


Regards 
Magnus

Reply via email to