File.expand_path incorrectly resolves paths relative to an in-jar path
----------------------------------------------------------------------

                 Key: JRUBY-4921
                 URL: http://jira.codehaus.org/browse/JRUBY-4921
             Project: JRuby
          Issue Type: Bug
          Components: Standard Library
    Affects Versions: JRuby 1.5.1
         Environment: all
            Reporter: mccraigmccraig of the clan mccraig
            Assignee: Thomas E Enebo


$:<<File.expand_path("../..", __FILE__) is relatively common. it works fine 
under jruby, except when __FILE__ is an in-jar path :

p = 
"file:/Users/mccraig/dev/sonar/lib/jruby-complete-1.5.1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8"
File.expand_path("..", p)
=> 
"/Users/mccraig/dev/sonar/file:/Users/mccraig/dev/sonar/lib/jruby-complete-1.5.1.jar!/META-INF/jruby.home/lib/ruby/site_ruby"

i just made bundler work as a jarred-gem under jruby : this bug was the only 
impediment to it working out-of-the-box

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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


Reply via email to