about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 1a7006f..6141ea1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -3,6 +3,10 @@ require 'rubygems'
 gem 'echoe', '>=2.6.4'
 require 'echoe'
 
+# XXX Workaround for http://jira.codehaus.org/browse/JRUBY-1444
+RUBY_PLATFORM = 'java' if ENV['FORCE_JAVA']
+RUBY_PLATFORM = 'mswin' if ENV['FORCE_WINDOWS']
+
 Echoe.new("mongrel") do |p|
   p.summary = "A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps."
   p.author ="Zed A. Shaw"
@@ -14,13 +18,11 @@ Echoe.new("mongrel") do |p|
 
   p.need_tar_gz = false
   p.need_tgz = true
-  p.require_signed = true
 
   case RUBY_PLATFORM
   when /mswin/
     p.certificate_chain = ['~/gem_certificates/mongrel-public_cert.pem',
       '~/gem_certificates/luislavena-mongrel-public_cert.pem']
-  when /java/
   else
     p.certificate_chain = ['~/p/configuration/gem_certificates/mongrel/mongrel-public_cert.pem',
       '~/p/configuration/gem_certificates/evan_weaver-mongrel-public_cert.pem']