about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
authorevanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9>2007-10-26 02:59:15 +0000
committerevanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9>2007-10-26 02:59:15 +0000
commitd4ff84b8d3afa45a69c23eb18899194bf7219140 (patch)
tree4a8e4b4e36ea36a8f543bfaaa2e6ec50fa1e94b6 /Rakefile
parent4ff4a7d915f01dabcb87125aa89159fcc5d48534 (diff)
downloadunicorn-d4ff84b8d3afa45a69c23eb18899194bf7219140.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@741 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile47
1 files changed, 1 insertions, 46 deletions
diff --git a/Rakefile b/Rakefile
index 4d7e389..4df1352 100644
--- a/Rakefile
+++ b/Rakefile
@@ -6,7 +6,7 @@ require 'echoe'
 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', 'site/output', '.config', 'lib/http11.jar', 'ext/http11_java/classes']
+  p.clean_pattern = ['ext/http11/*.{bundle,so,o,obj,pdb,lib,def,exp}', 'ext/http11/Makefile', 'pkg', 'lib/*.bundle', '*.gem', 'site/output', '.config']
   p.rdoc_pattern = ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc', 'ext/http11/http11.c']
   p.ignore_pattern = /^(pkg|site|projects|doc|log)|CVS|\.log/
   p.ruby_version = '>= 1.8.4'
@@ -30,10 +30,6 @@ e = Echoe.new("mongrel") do |p|
       extensions.clear
       self.files += ['lib/http11.so']
       self.platform = Gem::Platform::WIN32
-    when /java/
-      extensions.clear
-      self.files += ['lib/http11.jar']
-      self.platform = 'jruby'
     else
       add_dependency('daemons', '>= 1.0.3')
       add_dependency('fastthread', '>= 1.0.1')
@@ -52,21 +48,6 @@ task :ragel do
     sh "ragel http11_parser.rl | rlgen-cd -G2 -o #{target}"
     raise "Failed to build C source" unless File.exist? target
   end
-  Dir.chdir "ext/http11" do
-    target = "../../ext/http11_java/org/jruby/mongrel/Http11Parser.java"
-    File.unlink target if File.exist? target
-    sh "ragel -J http11_parser.java.rl | rlgen-java -o #{target}"
-    raise "Failed to build Java source" unless File.exist? target
-  end
-end
-
-#### XXX Hack around JRuby test/unit interaction problems
-
-desc "Run each test suite in isolation on JRuby"
-task :test_java do
-  e.test_pattern.each do |f|
-    sh "/opt/local/jruby/bin/jruby -w -Ilib:ext:bin:test -e 'require \"#{f}\"'" rescue nil
-  end
 end
 
 #### XXX Hack around RubyGems and Echoe for pre-compiled extensions.
@@ -75,18 +56,6 @@ def move_extensions
   Dir["ext/**/*.#{Config::CONFIG['DLEXT']}"].each { |file| cp file, "lib/" }
 end
 
-def java_classpath_arg
-  # A myriad of ways to discover the JRuby classpath
-  classpath = begin
-    require 'java'
-    # Already running in a JRuby JVM
-    Java::java.lang.System.getProperty('java.class.path')
-  rescue LoadError
-    ENV['JRUBY_PARENT_CLASSPATH'] || ENV['JRUBY_HOME'] && FileList["#{ENV['JRUBY_HOME']}/lib/*.jar"].join(File::PATH_SEPARATOR)
-  end
-  classpath ? "-cp #{classpath}" : ""
-end
-
 case RUBY_PLATFORM
 when /mswin/
   filename = "lib/http11.so"
@@ -98,19 +67,6 @@ when /mswin/
     move_extensions
   end
   task :compile => [filename]
-
-when /java/
-  filename = "lib/http11.jar"
-  file filename do
-    build_dir = "ext/http11_java/classes"
-    mkdir_p build_dir
-    sources = FileList['ext/http11_java/**/*.java'].join(' ')
-    sh "javac -target 1.4 -source 1.4 -d #{build_dir} #{java_classpath_arg} #{sources}"
-    sh "jar cf lib/http11.jar -C #{build_dir} ."
-    move_extensions      
-  end      
-  task :compile => [filename]
-
 end
 
 #### Project-wide install and uninstall tasks
@@ -133,7 +89,6 @@ task :package_all => [:package] do
   sub_project("mongrel_console", :package)
   sub_project("mongrel_cluster", :package)
   sub_project("mongrel_service", :package) if RUBY_PLATFORM =~ /mswin/
-  sh("rake java package") unless RUBY_PLATFORM =~ /java/
 end
 
 task :install_requirements do