Skip to content

Instantly share code, notes, and snippets.

@tmm1
Created October 20, 2010 17:01
Show Gist options
  • Select an option

  • Save tmm1/636826 to your computer and use it in GitHub Desktop.

Select an option

Save tmm1/636826 to your computer and use it in GitHub Desktop.
$ ruby -v
jruby 1.5.3 (ruby 1.8.7 patchlevel 249) (2010-09-28 7ca06d7) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_20) [x86_64-java]
$ ruby -e' require "lib/http11.jar"; p Mongrel '
-e:1: uninitialized constant Mongrel (NameError)
$ ruby -I lib -e' require "http11.jar"; p Mongrel '
Mongrel
$ rvm use jruby
Using /Users/test/.rvm/gems/jruby-1.5.3
$ gem install hoe rake-compiler
Successfully installed json_pure-1.4.6
Successfully installed rubyforge-2.0.4
Successfully installed hoe-2.6.2
Successfully installed rake-compiler-0.7.1
4 gems installed
$ gem install rspec -v 1.3.0
**************************************************
Thank you for installing rspec-1.3.0
Please be sure to read History.rdoc and Upgrade.rdoc
for useful information about this release.
**************************************************
Successfully installed rspec-1.3.0
1 gem installed
$ git clone git://github.com/fauna/mongrel
Cloning into mongrel...
remote: Counting objects: 7022, done.
remote: Compressing objects: 100% (1948/1948), done.
remote: Total 7022 (delta 4679), reused 6862 (delta 4593)
Receiving objects: 100% (7022/7022), 4.50 MiB | 164 KiB/s, done.
Resolving deltas: 100% (4679/4679), done.
$ cd mongrel
$ rake compile:java
(in /private/tmp/mongrel)
mkdir -p tmp/java/http11
jar cf tmp/java/http11/http11.jar -C tmp/java/http11 Http11Service.class -C tmp/java/http11 org/jruby/mongrel/Http11\$1.class -C tmp/java/http11 org/jruby/mongrel/Http11\$2.class -C tmp/java/http11 org/jruby/mongrel/Http11\$3.class -C tmp/java/http11 org/jruby/mongrel/Http11\$4.class -C tmp/java/http11 org/jruby/mongrel/Http11\$5.class -C tmp/java/http11 org/jruby/mongrel/Http11\$6.class -C tmp/java/http11 org/jruby/mongrel/Http11\$7.class -C tmp/java/http11 org/jruby/mongrel/Http11\$8.class -C tmp/java/http11 org/jruby/mongrel/Http11\$9.class -C tmp/java/http11 org/jruby/mongrel/Http11.class -C tmp/java/http11 org/jruby/mongrel/Http11Parser\$ElementCB.class -C tmp/java/http11 org/jruby/mongrel/Http11Parser\$FieldCB.class -C tmp/java/http11 org/jruby/mongrel/Http11Parser\$HttpParser.class -C tmp/java/http11 org/jruby/mongrel/Http11Parser.class
cp tmp/java/http11/http11.jar lib/http11.jar
mkdir -p tmp/java/http11/1.8.7
cd tmp/java/http11/1.8.7
...
(ignore rake error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment