about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
authorevanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9>2007-10-17 08:21:58 +0000
committerevanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9>2007-10-17 08:21:58 +0000
commit8fd6554088f653cafad29527edcd8151288cf7e7 (patch)
tree7f6562bea37fb3ebd15faabc5a8d3fc1b69d91ae /Rakefile
parent3a78a9f0077bf91263b7a9d47181e08d055910e6 (diff)
downloadunicorn-8fd6554088f653cafad29527edcd8151288cf7e7.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@679 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 6141ea1..cb67cb2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -7,7 +7,7 @@ require 'echoe'
 RUBY_PLATFORM = 'java' if ENV['FORCE_JAVA']
 RUBY_PLATFORM = 'mswin' if ENV['FORCE_WINDOWS']
 
-Echoe.new("mongrel") do |p|
+e = 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"
   p.clean_pattern = ['ext/http11/*.{bundle,so,o,obj,pdb,lib,def,exp}', 'ext/http11/Makefile', 'pkg', 'lib/*.bundle', '*.gem', 'doc/site/output', '.config', 'lib/http11.jar', 'ext/http11_java/classes']
@@ -63,7 +63,15 @@ task :ragel do
   end
 end
 
-#### A hack around RubyGems and Echoe for pre-compiled extensions.
+#### XXX Hack around JRuby test/unit interaction problems
+
+task :test_java do
+  e.test_pattern.each do |f|
+    sh "/opt/local/jruby/bin/jruby -w -Ilib:ext:bin:test -e 'require \"#{f}\"; require \"test/unit\"'" rescue nil
+  end
+end
+
+#### XXX Hack around RubyGems and Echoe for pre-compiled extensions.
 
 def move_extensions
   Dir["ext/**/*.#{Config::CONFIG['DLEXT']}"].each { |file| cp file, "lib/" }