From ef3196dc07506d6a11d8845cb1b594cf8b3c0b8d Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Tue, 13 Sep 2011 14:43:01 -0500 Subject: Fix Rakefile to build JRuby bits using -target 1.5, for Java 1.5 and higher. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 2a41f37..4b51571 100644 --- a/Rakefile +++ b/Rakefile @@ -232,7 +232,7 @@ if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'jruby' classpath = (Dir['java/lib/*.jar'] << 'java/src' << JRUBY_JAR) * ':' obj = src.sub(/\.java\Z/, '.class') file obj => src do - sh 'javac', '-classpath', classpath, '-source', '1.5', src + sh 'javac', '-classpath', classpath, '-source', '1.5', '-target', '1.5', src end JAVA_CLASSES << obj end -- cgit v1.2.1