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

Comments

Projects
None yet
1 participant
@mkristian
Member

mkristian commented May 21, 2015

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