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

jrubyJavaBootstrap script should add the jar/war package itself to the $LOAD_PATH #66

Closed
rtyler opened this issue Oct 18, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@rtyler
Copy link
Member

rtyler commented Oct 18, 2014

When printing out $LOAD_PATH from the script running inside a built .jar file with jrubyJavaBootstrap, it apparently isn't including the full path to the jar file itself (see below).

This means we cannot properly load gems that have been packaged into the archive.

build/libs/metron-2.0.null-all.jar
file:/usr/home/tyler/source/lookout/git/metron/build/libs/metron-2.0.null-all.jar!/META-INF/jruby.home/lib/ruby/1.9/site_ruby
file:/usr/home/tyler/source/lookout/git/metron/build/libs/metron-2.0.null-all.jar!/META-INF/jruby.home/lib/ruby/shared
file:/usr/home/tyler/source/lookout/git/metron/build/libs/metron-2.0.null-all.jar!/META-INF/jruby.home/lib/ruby/1.9
Could not find i18n-0.6.9 in any of the sources
Run `bundle install` to install missing gems.

@rtyler rtyler added the bug label Oct 18, 2014
@rtyler rtyler self-assigned this Oct 18, 2014
@rtyler rtyler added this to the 0.1.4 milestone Oct 18, 2014
@rtyler
Copy link
Member Author

rtyler commented Oct 19, 2014

It looks like the issue that I was having was not related to this, it appears that the build/libs/metron-2.0.null-all.jar line is good enough for rubygems to find the right gem path

@rtyler rtyler closed this as completed Oct 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant