summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2010-09-22 22:21:02 +0200
committerFlorian Frank <flori@ping.de>2011-01-02 21:13:32 +0100
commit660458f2d1cae71d2c9ea8865b831020a9609eeb (patch)
treef24b6cc4ec53563395f25a385d91897f445a814e /Rakefile
parente3fe104e7d5ec184aac36128aed2d217cb655dfc (diff)
downloadjson-660458f2d1cae71d2c9ea8865b831020a9609eeb.tar.gz
build jruby extension with Rakefile
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 6af9fec..7ce6b69 100644
--- a/Rakefile
+++ b/Rakefile
@@ -339,8 +339,7 @@ if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
myruby '-S', 'testrb', '-Ilib', *Dir['tests/*.rb']
end
- desc "Create parser jar"
- task :create_parser_jar => :compile_jruby do
+ file JRUBY_PARSER_JAR => :compile_jruby do
cd 'java/src' do
parser_classes = FileList[
"json/ext/ByteListTranscoder*.class",
@@ -355,8 +354,10 @@ if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
end
end
- desc "Create generator jar"
- task :create_generator_jar => :compile_jruby do
+ desc "Create parser jar"
+ task :create_parser_jar => JRUBY_PARSER_JAR
+
+ file JRUBY_GENERATOR_JAR => :compile_jruby do
cd 'java/src' do
generator_classes = FileList[
"json/ext/ByteListTranscoder*.class",
@@ -371,6 +372,9 @@ if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
end
end
+ desc "Create generator jar"
+ task :create_generator_jar => JRUBY_GENERATOR_JAR
+
desc "Create parser and generator jars"
task :create_jar => [ :create_parser_jar, :create_generator_jar ]