summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-01-27 20:20:12 +0000
committerRafael H. Schloming <rhs@apache.org>2009-01-27 20:20:12 +0000
commite499bb4d3bcff953fc8dc79cf16a325fe5e25160 (patch)
tree422aa2bad5fe38131ac23486a371afff20fe7ff9
parentae2a603c138dee61c6698e12a957f7c90011248c (diff)
downloadqpid-python-e499bb4d3bcff953fc8dc79cf16a325fe5e25160.tar.gz
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
-rw-r--r--qpid/ruby/Rakefile19
1 files changed, 8 insertions, 11 deletions
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
#