Permalink
Browse files

Silence ant runtime errors on systems building with ant 1.8

  • Loading branch information...
1 parent f8e3edf commit 737c01cc3ab5038c7741288797a93c52ed63b098 @keithcelt keithcelt committed Jan 31, 2012
Showing with 9 additions and 8 deletions.
  1. +9 −8 Rakefile
View
@@ -39,15 +39,15 @@ def run_tests tests
rescue Exception
end
end
-
+
tests.zip(results).each do |name, passed|
unless passed
puts "Errors in #{name}"
end
end
fail if results.any?{|passed|!passed}
end
-
+
desc "run full test suite"
task :test do
run_tests [ 'test:core', 'test:plugins', 'test:jvm' ]
@@ -60,7 +60,7 @@ namespace :test do
t.test_files = FileList["test/core/**/*test.rb"]
java.lang.System.set_property("jruby.duby.enabled", "true")
end
-
+
desc "run tests for plugins"
Rake::TestTask.new :plugins do |t|
t.libs << 'test'
@@ -72,7 +72,7 @@ namespace :test do
task :jvm do
run_tests ["test:jvm:bytecode", "test:jvm:javac"]
end
-
+
namespace :jvm do
desc "run jvm tests compiling to bytecode"
Rake::TestTask.new :bytecode do |t|
@@ -81,15 +81,15 @@ namespace :test do
t.test_files = FileList["test/jvm/**/*test.rb"]
java.lang.System.set_property("jruby.duby.enabled", "true")
end
-
+
desc "run jvm tests compiling to java source, then bytecode"
Rake::TestTask.new :javac do |t|
t.libs << 'test' <<'test/jvm'
t.ruby_opts.concat ["-r", "javac_test_helper"]
t.test_files = FileList["test/jvm/**/*test.rb"]
java.lang.System.set_property("jruby.duby.enabled", "true")
end
-
+
end
end
@@ -132,11 +132,12 @@ task :compile => :init do
'mirah'
)
end
-
+
# compile invokedynamic stuff
ant.javac :destdir => 'build', :srcdir => 'src',
:includes => 'org/mirah/DynalangBootstrap.java',
- :classpath => 'javalib/dynalink-0.1.jar:javalib/jsr292-mock.jar'
+ :classpath => 'javalib/dynalink-0.1.jar:javalib/jsr292-mock.jar',
+ :includeantruntime => false
end
desc "build basic jar for distribution"

0 comments on commit 737c01c

Please sign in to comment.