diff options
author | Florian Frank <flori@ping.de> | 2010-09-22 22:21:02 +0200 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2011-01-02 21:13:32 +0100 |
commit | 660458f2d1cae71d2c9ea8865b831020a9609eeb (patch) | |
tree | f24b6cc4ec53563395f25a385d91897f445a814e /Rakefile | |
parent | e3fe104e7d5ec184aac36128aed2d217cb655dfc (diff) | |
download | json-660458f2d1cae71d2c9ea8865b831020a9609eeb.tar.gz |
build jruby extension with Rakefile
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 ] |