From e499bb4d3bcff953fc8dc79cf16a325fe5e25160 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 27 Jan 2009 20:20:12 +0000 Subject: fixed spec_cache target and made it part of build git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@738224 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/ruby/Rakefile | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'qpid/ruby') diff --git a/qpid/ruby/Rakefile b/qpid/ruby/Rakefile index 7ac6c09eeb..94f6389822 100644 --- a/qpid/ruby/Rakefile +++ b/qpid/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 # -- cgit v1.2.1