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, src
folders - Under
Project1/bin
– I havewrapper shell script
from where I am callingjruby jar
. - Under
Project1/lib
– I havejruby-complete-1.6.7.2.jar
andojdbc6.jar
- Under
Project1/src
– I havelib
andtool
folders- Under
Project1/src/lib
– I havemain.rb
file andutil
folder - Under
Project1/src/lib/util
- I have2-ruby scripts
which are getting called inmain.rb
.
- Under
- Under
Project1/src/tool
- I haveTool.java
from 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.