I have to create a JRuby jar file for my project. Below I provided details about my directory structure and files.
- Top level directory -
Project1 - Under
Project1– I havebin, lib, srcfolders - Under
Project1/bin– I havewrapper shell scriptfrom where I am callingjruby jar. - Under
Project1/lib– I havejruby-complete-1.6.7.2.jarandojdbc6.jar - Under
Project1/src– I havelibandtoolfolders- Under
Project1/src/lib– I havemain.rbfile andutilfolder - Under
Project1/src/lib/util- I have2-ruby scriptswhich are getting called inmain.rb.
- Under
- Under
Project1/src/tool- I haveTool.javafrom where I callmain.rb.
Now I have couple of questions -
Do I need to bundle all the gems which I used in my ruby scripts (for example:
colorize,socket,net/ssh, etc)?How do I create a JRuby jar? I saw the following posts on stackoverflow before posting my question but I got confused and kind of not able to figure out from where to start. Please provide some guidance on this.