No, it's not a war roar. This is not a current world affairs blog
RoRaWAR stands for Ruby on Rails as Web ARchive.
The rails integration (under the
jruby-extras
umbrella) project's purpose is to WAR'up a RoR application. And it's great to see how far the project has come along since its inception a few months ago !
The creation of a web archive from a RoR application is as simple as
-
svn checkout svn://rubyforge.org/var/svn/jruby-extras/trunk/rails-integration rails-integration
-
cd rails-integration; mvn install;
the couple of steps above are one time only
-
cp -R <rails-integrations>/plugins/war <rails-app-dir>/vendor/plugins/
cp -R <rails-integrations>/plugins/war-snapshot/* <rails-app-dir>/vendor/plugins/war
-
cd <rails-app-dir>;
rake war:standalone:create or rake war:shared:create ;
#standalone mode will archive the rails framework libraries whereas the shared mode will not
It's as simple as that !
Note: There are a few implied dependencies here -
JRuby, maven2, rails framework libraries. Also, since the rails-integration project is trying to utilize the
latest and greatest JRuby releases, you
might have to install the jruby.jar into maven2 repository via the maven install:install-file command.
Eventually, the first couple of steps will not be needed once the rails-integration libraries are downloadable as a binary release, but until then ...
Posted by Ed Powell on February 16, 2007 at 12:12 PM PST #