diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2009-01-27 20:20:12 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2009-01-27 20:20:12 +0000 |
| commit | 3f547381f1af5cdb9d7c5f9cc30f7303d643afd9 (patch) | |
| tree | e3f9a7760fb30aefcc4017b62de651431abb09c7 /ruby | |
| parent | 10848162f6c120b0e347098fc0cafc9dc261d710 (diff) | |
| download | qpid-python-3f547381f1af5cdb9d7c5f9cc30f7303d643afd9.tar.gz | |
fixed spec_cache target and made it part of build
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@738224 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'ruby')
| -rw-r--r-- | ruby/Rakefile | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/ruby/Rakefile b/ruby/Rakefile index 7ac6c09eeb..94f6389822 100644 --- a/ruby/Rakefile +++ b/ruby/Rakefile @@ -58,8 +58,8 @@ file SASL_MODULE => [ MAKEFILE, SASL_SRC ] do |t| end end end -desc "Build the native library" -task :build => SASL_MODULE +desc "Build the native library and AMQP spec cache" +task :build => :spec_cache Rake::TestTask.new(:test) do |t| t.test_files = FileList['tests/*.rb'].exclude("tests/util.rb") @@ -72,16 +72,13 @@ Rake::TestTask.new(:"test_0-8") do |t| end desc "Create cached versions of the AMQP specs" -task :spec_cache do |t| - AMQP_SPEC_FILES.each do |f| - pid = fork do - $: << "lib" - require 'qpid' - Qpid::Spec010::load(f) - puts "Cached #{f}" - end - Process.wait(pid) +task :spec_cache => SASL_MODULE do |t| + pid = fork do + $:.insert(0, "lib", "ext/sasl") + require 'qpid' + Qpid::Spec010::load() end + Process.wait(pid) end # |
