File.expand_path cannot resolve a relative change to a path inside a jar
------------------------------------------------------------------------

                 Key: JRUBY-1622
                 URL: http://jira.codehaus.org/browse/JRUBY-1622
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: OSX 10.5, Java 5, JRuby 1.x (from source)
            Reporter: David Koontz


Inside a file in a jar I try the following:

File.expand_path(File.dirname(__FILE__) + "/../")

__FILE__ is 
file:/Users/david/dev/projects/games/railgun/demo-app/lib/railgun/railgun.jar!/railgun/environment.rb
File.dirname(__FILE__) is 
file:/Users/david/dev/projects/games/railgun/demo-app/lib/railgun/railgun.jar!/railgun

That all works fine, but when I try the expand_path I get

/Users/david/dev/projects/games/railgun/demo-app/file:/Users/david/dev/projects/games/railgun/demo-app/lib/railgun/railgun.jar!

/Users/david/dev/projects/games/railgun/demo-app/ is the base directory where 
the application is being launched from.

-- 
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