diff options
author | Charles Oliver Nutter <headius@headius.com> | 2011-09-13 14:43:01 -0500 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2011-09-14 13:27:53 +0200 |
commit | ef3196dc07506d6a11d8845cb1b594cf8b3c0b8d (patch) | |
tree | ea1e2d76cfe0f94266856ad733cfef3a7c46808a /Rakefile | |
parent | f729d47aefc98623677142de62f6211feeacb116 (diff) | |
download | json-ef3196dc07506d6a11d8845cb1b594cf8b3c0b8d.tar.gz |
Fix Rakefile to build JRuby bits using -target 1.5, for Java 1.5 and higher.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |