TOTD #18: How to Build The GlassFish v3 Gem for JRuby ?
- Software pre-requisite
- Subversion client (for example Tigris)
- Maven 2.0.x
- JRuby 1.0.x (I used
JRuby 1.0.2
and lets say installed in
JRUBY_HOME). Make sureJRUBY_HOME/binis in your path.
- Build the Gem
-
As explained in Jerome's entry, you can check out complete GlassFish v3 workspace or just the Gem code. Here is how you'll check out only the Gem code on a Windows machine using Tigris Subversion client:

And after the check out is complete, you'll see:

- Build the gem by giving the command:
mvn install
And success is achieved by seeing the following in the console:
[INFO] (in C:/workspaces/glassfish/gem/target/dependency/glassfish)The Gem is available in
[WARNING] mkdir -p pkg
[INFO] Successfully built RubyGem
[INFO] Name: GlassFish
[WARNING] mv GlassFish-10.0.0-java.gem pkg/GlassFish-10.0.0-java.gem
[INFO] Version: 10.0.0
[INFO] File: GlassFish-10.0.0-java.gem
[INFO] [install:install]
[INFO] Installing C:\workspaces\glassfish\gem\target\gem-10.0-SNAPSHOT.jar to C:\Users\Arun Gupta\.m2\repository\org\glassfish\distributions\gem\10.0-SNAPSHOT\gem-10.0-SNAPSHOT.jar
[INFO] [install:install-file {execution: install-gem}]
[INFO] Installing C:\workspaces\glassfish\gem\target\dependency\glassfish\pkg\GlassFish-10.0.0-java.gem to C:\Users\Arun Gupta\.m2\repository\org\glassfish\distributions\GlassFish-Gem\10.0-SNAPSHOT\GlassFish-Gem-10.0-SNAPSHOT.gem
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 2 seconds
[INFO] Finished at: Fri Nov 16 17:56:12 PST 2007
[INFO] Final Memory: 11M/20M
[INFO] ------------------------------------------------------------------------
target\dependency\glassfish\pkgdirectory.
-
- Install the Gem
- Change to the directory where the Gem is available
cdtarget\dependency\glassfish\pkg - Install the Gem as:
C:\testbed\ruby\jruby-1.0.2\bin\jruby -S gem install GlassFish-10.0.0-java.gem
Successfully installed GlassFish, version 10.0.0
- Change to the directory where the Gem is available
And use it!
Please leave suggestions on other TOTD that you'd like to see. A complete archive is available here.
Technorati: totd v3 jruby ruby rubyonrails glassfish rubygem jrubyonglassfish
- Login or register to post comments
- Printer-friendly version
- arungupta's blog
- 904 reads





