Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File.expand_path inside a jar can fail #2967

Closed
mkristian opened this issue May 21, 2015 · 0 comments
Closed

File.expand_path inside a jar can fail #2967

mkristian opened this issue May 21, 2015 · 0 comments

Comments

@mkristian
Copy link
Member

script
└── rails

where rails script does something like File.expand_path('../../config/application', __FILE__) which produces

/home/christian/uri:classloader:/config/application

instead of

uri:classloader:/config/application

not going over the root "uri:classloader:/" works, like File.expand_path('../config/application', __FILE__) gives 'uri:classloader:/script/config/application' as expected.

loading the script/rails with classpath:script/rails is even more messed up:
/home/christian/uri:classloader:/classpath:script/config/application

@mkristian mkristian self-assigned this May 21, 2015
headius added a commit that referenced this issue May 21, 2015
mkristian added a commit that referenced this issue Jun 19, 2015
@mkristian mkristian added this to the JRuby 1.7.21 milestone Jun 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant