summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAbhi Yerra <ykabhinav@gmail.com>2009-09-06 21:30:49 +0800
committerFlorian Frank <flori@ping.de>2009-09-22 20:24:36 +0800
commitcaf23f2b2327968e0cbeda716dbda671b40ee331 (patch)
tree1d873407120ca1c05e4c5052b2810255e86b8130 /Rakefile
parent8fc956d64cb871f10bfda6cdb00f43e365e47514 (diff)
downloadjson-caf23f2b2327968e0cbeda716dbda671b40ee331.tar.gz
When installing if it is JRuby then install the pure version.
Signed-off-by: Florian Frank <flori@ping.de>
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index b7ca681..2fdd671 100644
--- a/Rakefile
+++ b/Rakefile
@@ -48,7 +48,11 @@ desc "Installing library (extension)"
task :install_ext => [ :compile_ext, :install_pure, :install_ext_really ]
desc "Installing library (extension)"
-task :install => :install_ext
+if PLATFORM =~ /java/
+ task :install => :install_pure
+else
+ task :install => :install_ext
+end
desc "Compiling extension"
task :compile_ext => [ EXT_PARSER_DL, EXT_GENERATOR_DL ]