You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2009/01/27 21:20:13 UTC

svn commit: r738224 - /qpid/trunk/qpid/ruby/Rakefile

Author: rhs
Date: Tue Jan 27 20:20:12 2009
New Revision: 738224

URL: http://svn.apache.org/viewvc?rev=738224&view=rev
Log:
fixed spec_cache target and made it part of build

Modified:
    qpid/trunk/qpid/ruby/Rakefile

Modified: qpid/trunk/qpid/ruby/Rakefile
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/ruby/Rakefile?rev=738224&r1=738223&r2=738224&view=diff
==============================================================================
--- qpid/trunk/qpid/ruby/Rakefile (original)
+++ qpid/trunk/qpid/ruby/Rakefile Tue Jan 27 20:20:12 2009
@@ -58,8 +58,8 @@
     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 @@
 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
 
 #



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org