Skip to content

Requiring of relatively referenced jar'ed scripts fails #235

@akiellor

Description

@akiellor

This fails:

irb> require 'jar:file:/Users/ThoughtWorks/.gradle/caches/artifacts-13/filestore/org.rubygems/arr-pm/0.0.7/jar/7e35e61f1f91ea4d805877c79bc73474b813d1fe/arr-pm-0.0.7.jar!/gems/arr-pm-0.0.7/lib/arr-pm/file/../namespace'

LoadError: no such file to load -- jar:file:/Users/ThoughtWorks/.gradle/caches/artifacts-13/filestore/org.rubygems/arr-pm/0.0.7/jar/7e35e61f1f91ea4d805877c79bc73474b813d1fe/arr-pm-0.0.7.jar!/gems/arr-pm-0.0.7/lib/arr-pm/file/../namespace
    from org/jruby/RubyKernel.java:999:in `require'
    from jar:file:/Users/ThoughtWorks/Development/jruby/dist/jruby-complete-1.7.0.preview2.dev.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36:in `require'
    from (irb):1:in `evaluate'
    from org/jruby/RubyKernel.java:1045:in `eval'
    from org/jruby/RubyKernel.java:1361:in `loop'
    from org/jruby/RubyKernel.java:1154:in `catch'
    from org/jruby/RubyKernel.java:1154:in `catch'
    from /Users/ThoughtWorks/.rvm/rubies/jruby-1.6.7.2/bin/jirb:17:in `(root)'

But this is ok:

irb> require 'jar:file:/Users/ThoughtWorks/.gradle/caches/artifacts-13/filestore/org.rubygems/arr-pm/0.0.7/jar/7e35e61f1f91ea4d805877c79bc73474b813d1fe/arr-pm-0.0.7.jar!/gems/arr-pm-0.0.7/lib/arr-pm/namespace'

I'm working on the dependency to use File.expand_path when requiring these files, but I feel like jruby should be able to do this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions