Not sure how to get started?
This probably isn't the best avenue for 'support' but the README docs are pretty confusing.
I'm looking to move to warbler and away from my current solution to package up ruby projects into a jar.
I'd like to:
- package up a project into aj ar
- include many external java libraries
- set a specific script as the entry point
- include gems listed in the .gemspec/Gemfile.lock
pork(~/projects/logstash) % warble
warning: Bundler `path' components are not currently supported.
The `logstash-1.1.5.dev-java' component was not bundled.
Your application may fail to boot!
No default executable found in logstash-event.gemspec, using bin/logstash
rm -f logstash.jar
Creating logstash.jar
Why did it choose 'logstash-event.gemspec' ? How can I tell it to use 'logstash.gemspec' instead?
pork(~/projects/logstash) % java -jar logstash.jar agent
LoadError: no such file to load -- logstash/namespace
require at org/jruby/RubyKernel.java:1019
require at jar:file:/tmp/jruby5625438949782269468extract/jruby-stdlib-1.7.0.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36
require at jar:file:/home/jls/projects/logstash/logstash.jar!/logstash/lib/logstash/runner.rb:10
Seems like the $LOAD_PATH isn't set correctly?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
I am also running into the same issue, and it seems that no one else on the internet has an answer for this. If I find anything, I'll be sure to post my answer.
For what it's worth, I don't need this solved anymore. Logstash specifically is being packaged in a different way now.
you could try jbundler which can pack all in one jar files and has better support for jar dependencies.
I haven't tried JBundler yet, but I realized that I needed to add the runtime dependencies and add the gems to the Gemfile, then use git to add the changes, then Warbler was able to use the gemspec to add the appropriate files.