summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Oliver Nutter <headius@headius.com>2011-09-13 14:43:01 -0500
committerFlorian Frank <flori@ping.de>2011-09-14 13:27:53 +0200
commitef3196dc07506d6a11d8845cb1b594cf8b3c0b8d (patch)
treeea1e2d76cfe0f94266856ad733cfef3a7c46808a
parentf729d47aefc98623677142de62f6211feeacb116 (diff)
downloadjson-ef3196dc07506d6a11d8845cb1b594cf8b3c0b8d.tar.gz
Fix Rakefile to build JRuby bits using -target 1.5, for Java 1.5 and higher.
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
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