From: Kevin Clark Date: Wed, 18 Jun 2008 01:13:48 +0000 (+0000) Subject: Add new gen-rb task to rebuild the bundled thrift generated code for specs X-Git-Tag: 0.2.0~566 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=a7613dde90187112c5655ecdb6967d55d8ad5b1e;p=common%2Fthrift.git Add new gen-rb task to rebuild the bundled thrift generated code for specs Also rewrite the test task to properly abort Rake if it fails git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668984 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/rb/Rakefile b/lib/rb/Rakefile index bd68414e..41ca65f5 100644 --- a/lib/rb/Rakefile +++ b/lib/rb/Rakefile @@ -17,8 +17,11 @@ Spec::Rake::SpecTask.new("rcov_spec") do |t| end task :test do - fork do - exec 'make', '-C', File.dirname(__FILE__) + "/../../test/rb" - end - Process.wait + sh 'make', '-C', File.dirname(__FILE__) + "/../../test/rb" +end + +task :'gen-rb' do + thrift = '../../compiler/cpp/thrift' + dir = File.dirname(__FILE__) + '/spec' + sh thrift, '--gen', 'rb', '-o', dir, "#{dir}/ThriftSpec.thrift" end