Changeset 892
- Timestamp:
- 12/06/07 13:00:49 (9 months ago)
- Files:
-
- trunk/Rakefile (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Rakefile
r883 r892 62 62 end 63 63 64 #### XXX Hack around JRuby test/unit interaction problems 64 #### XXX Hack around JRuby in-process launching problem 65 66 require 'rake/testtask' 67 Rake::TestTask.new(:test_local) do |t| 68 t.libs << "lib" << "test" << "projects/gem_plugin/lib" 69 t.test_files = e.test_pattern 70 end 65 71 66 72 desc "Run each test suite in isolation on JRuby" 67 73 task :test_java do 68 e.test_pattern.each do |f| 69 sh "/opt/local/jruby/bin/jruby -w -Ilib:ext:bin:test -e 'require \"#{f}\"'" rescue nil 74 require 'jruby' 75 save = JRuby.runtime.instance_config.run_ruby_in_process 76 begin 77 JRuby.runtime.instance_config.run_ruby_in_process = false 78 Rake::Task[:test_local].invoke 79 ensure 80 JRuby.runtime.instance_config.run_ruby_in_process = save 70 81 end 71 82 end
