Trunk Build Failure for install_dist_gems task
----------------------------------------------
Key: JRUBY-6068
URL: https://jira.codehaus.org/browse/JRUBY-6068
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Affects Versions: JRuby 1.7
Environment: Mac OSX 10.6.8, Ruby 1.9.3 preview 1, gem 1.8.10, rake
0.9.2.1,
Reporter: Chris White
Fix For: JRuby 1.7
When drying to run the ant dist build task, there is a failure for the spec
task. This is how I'm running the build task:
ant -Djruby.default.ruby.version=1.9 dist
The following error is displayed:
{code}
[echo] Running rake install_dist_gems
[echo] compile=OFF, threshold=20, objectspace=true threadpool=false
reflection=false
[java] (in /Users/chriswhite/github/jruby)
[java] rake aborted!
------------------------------------------------------------------------
[java] undefined method `full_gem_path' for nil:NilClass
[java] /Users/chriswhite/github/jruby/rakelib/spec.rake:157:in `(root)'
------------------------------------------------------------------------
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:1874:in
`in_namespace'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:908:in
`namespace'
[java] /Users/chriswhite/github/jruby/rakelib/spec.rake:16:in `(root)'
[java] org/jruby/RubyKernel.java:996:in `load'
[java] /Users/chriswhite/github/jruby/rakelib/spec.rake:1612:in `load'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:2430:in
`load_imports'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:2380:in
`raw_load_rakefile'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:2007:in
`load_rakefile'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:2058:in
`standard_exception_handling'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:2006:in
`load_rakefile'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:1991:in `run'
[java] /Users/chriswhite/Ruby/ruby-1.9.3/bin/rake:32:in `(root)'
{code}
The particular line indicated by spec.rake:157 is:
{code}
rake_location = File.join(Gem.loaded_specs['rake'].full_gem_path, "lib")
{code}
A quick look at an irb session shows that Gem.loaded_specs is an empty hash,
which would explain the issue. Unfortunately I'm not yet able to pinpoint why
it's empty.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email