TOTD #18: How to Build The GlassFish v3 Gem for JRuby ?

Jerome posted the instructions to build GlassFish v3 Gem for JRuby - very simple and easy. A binary version of Gem is available here.

  1. Software pre-requisite
    1. Subversion client (for example Tigris)
    2. Maven 2.0.x
    3. JRuby 1.0.x (I used JRuby 1.0.2 and lets say installed in JRUBY_HOME).  Make sure JRUBY_HOME/bin is in your path.
  2. Build the Gem
    1. 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:

    2. 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)
      [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] ------------------------------------------------------------------------

      The Gem is available in target\\dependency\\glassfish\\pkg directory.
  3. Install the Gem
    1. Change to the directory where the Gem is available

      cd target\\dependency\\glassfish\\pkg
    2. 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

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 gem jrubyonglassfish

Comments:

[Trackback] JRuby 1.0.3 was recently released and so was Rails 2.0. I decided to try JRuby 1.0.3 + Rails 2.0 and realized that a few additional steps (because of Rails 2.0) are required to get a trivial Hello World applcation...

Posted by Arun Gupta's Blog on December 21, 2007 at 03:20 AM PST #

[Trackback] Pramod published an updated JRuby Gem for GlassFish v3. Download the gem here. Here are the updates from last time: The Gem is now smaller - 2.4 MB instead of 2.9 MB (approx 20% smaller). The Gem is now using...

Posted by Arun Gupta's Blog on January 04, 2008 at 10:27 PM PST #

Post a Comment:
Comments are closed for this entry.
About

profile image
Arun Gupta is a technology enthusiast, a passionate runner, author, and a community guy who works for Oracle Corp.


Java EE 7 Samples

Stay Connected

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today