public
Description: watir on steroids / jruby wrapper for htmlunit
Home | Edit | New

Creating jar files

Celerity includes two rake tasks to build jar files of the library.

$ rake jar:fat                  
$ rake jar:tiny                 

This will also work inside the gem dir, if you haven’t cloned the repo.

The fat jar will compile Celerity and create pkg/celerity-complete-X.X.X.jar, which includes HtmlUnit + all its dependecies inside the jar. To use it from your JRuby code:

require 'celerity-complete-X.X.X.jar'
require 'celerity'

The tiny jar will compile Celerity and create pkg/celerity-X.X.X.jar. You will need to have HtmlUnit + dependencies somewhere handy (like your CLASSPATH), and then require them before you require "celerity".

Last edited by jarib, Fri Dec 19 09:11:17 -0800 2008
Home | Edit | New
Versions: