How to build a gem

It's been quite public for some time that we have a special distribution of GlassFish V3 as a Ruby Gem file. Ruby gems are the packaging technology for ruby extensions, and having a gem distribution of GlassFish is interesting to the JRuby users community. 

Arun has blogged there about how to use the gem so I will just describe here how to build it.

To build the gem, you will need to following software :

  1. subversion to checkout the code
  2. maven to build
  3. jruby 1.0.1

The gem building is not part of the mainstream GlassFish build because it requires JRuby... The first thing to decide  is whether you want to checkout the entire GlassFish V3 workspace or just checkout the gem distribution module.

Case 1 : Entire V3 workspace

 First you should look into this document if you plan to change/add code to V3.

svn checkout https://svn.dev.java.net/svn/glassfish-svn/trunk/v3
cd v3
mvn install 

Once you have done that you have a glassfish build, you can just build the gem distribution by :

cd distributions/gem
mvn install 

Case 2 : Just the Gem 

To checkout the gem module 

svn checkout https://svn.dev.java.net/svn/glassfish-svn/trunk/v3/distributions/gem

cd gem
mvn install 

Now in either case, you will find the gem file in target/dependency/glassfish/pkg directory, and you can install it in your jruby installation by doing

gem install target/dependency/glassfish/pkg/GlassFish-10.0.0-java.gem 

Once this is done, you just need to refer back to Arun's blog on how to use the Gem !

 


Comments:

I can't seem to checkout from the above subversion uri. It is asking for login and password for authorization. Am I missing something obvious?

Posted by Michael Guterl on November 24, 2007 at 12:57 PM PST #

I'm an idiot. I figured out that I needed to register for a java.net account...

Posted by Michael Guterl on November 24, 2007 at 01:12 PM PST #

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

dochez

Search

Categories
Archives
« April 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
   
       
Today