We phased out support for running the rake command a while back, so we only need to test against one binary (i.e buildr).
Assaf On Sun, Nov 23, 2008 at 5:32 AM, wheatland <[EMAIL PROTECTED]> wrote: > > Recently, I read a book about jruby,and it use buildr in some examples. > My environment : Winxp,Jruby1.1.5,buildr 1.3.3,also Ruby 1.8.6 > I run buildr with Jruby > Here I have a buildfile like this: > ------------------------------------------- > require 'buildr' > > # Generated by Buildr 1.3.3, change to your liking > # Version number for this release > VERSION_NUMBER = "1.0.0" > # Group identifier for your projects > GROUP = "buildr-jruby" > COPYRIGHT = "" > > # Specify Maven 2.0 remote repositories here, like this: > repositories.remote << "http://www.ibiblio.org/maven2/" > > desc "The Buildr-jruby project" > define "buildr_jruby" do > > project.version = VERSION_NUMBER > project.group = GROUP > manifest["Implementation-Vendor"] = COPYRIGHT > > define "m_buildr" do > compile > package :jar > end > end > --------------------------------------------- > I run buildr it work well. > When I chang the file name to rakefile, > and run it with jruby --command rake > it can't work > --------------------------------------------- > Internal error: Called Buildr.settings before buildfile located > D:/jruby-1.1.5/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/lib/buildr/core/application.rb:144:in > `settings' > D:/jruby-1.1.5/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/lib/buildr/core/application.rb:375:in > `settings' > D:/jruby-1.1.5/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/lib/buildr/packaging/artifact.rb:481:in > `remote' > D:/jruby_work/ch03/buildr-jruby/rakefile:11 > D:/jruby_work/ch03/buildr-jruby/rakefile:2149:in `load' > D:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:in > `raw_load_rakefile' > D:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1897:in > `load_rakefile' > D:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling' > D:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1896:in > `load_rakefile' > D:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1880:in `run' > D:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling' > D:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run' > D:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31 > D:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:19:in `load' > D:/jruby-1.1.5/bin/rake:19 > ---------------------------------------------- > -- > View this message in context: > http://www.nabble.com/How-can-I-use-rake-to-run-rakefile-instead-of-buildfile--tp20646153p20646153.html > Sent from the Buildr - User mailing list archive at Nabble.com. > >
