require 'rubygems'
project = 'rack'
gemspec = File.expand_path("#{project}.gemspec", Dir.pwd)
Gem::Specification.load(gemspec).dependencies.each do |dep|
  gem dep.name, *dep.requirement.as_list
end
require 'rubygems'
project = 'rack'
gemspec = File.expand_path("#{project}.gemspec", Dir.pwd)
Gem::Specification.load(gemspec).dependencies.each do |dep|
  unless dep.name == 'fcgi' && RUBY_PLATFORM =~ /java/
    gem dep.name, *dep.requirement.as_list
  end
end

Make fulltest work on jruby
Make fulltest work on jruby
