From: Bret Pettichord Date: 2007-04-11T04:35:37+09:00 Subject: Re: Ruby Gem Creates Broken Batch File for Rake ------=_Part_8165_23889764.1176233734021 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/10/07, Alexey Verkhovsky wrote: > > We figured out as much in the course of CruiseControl.rb project. > Have a look at Build#rake() method in app/models/build.rb of that code > base. For the rest of you, here is what they did: def rake # --nosearch flag here prevents CC.rb from building itself when a project has no Rakefile %{ruby -e "require 'rubygems' rescue nil; require 'rake'; load '#{ File.expand_path(RAILS_ROOT)}/tasks/cc_build.rake'; ARGV << '--nosearch'#{CruiseControl::Log.verbose? ? " << '--trace'" : ""} << 'cc:build'; Rake.application.run"} end Thanks for the comment. Bret ------=_Part_8165_23889764.1176233734021--