[Rake-devel] Multiple Rakefile build
Patrick.Bennett at inin.com
Fri Dec 2 18:11:27 EST 2005
I modified my rake.rb to support this via an additional command that
specified subdirectories to get added to a queue.
Rake then iterates through this queue loading the rakefiles and
executing them [clearing out all tasks between].
It doesn't work like make either, where people frequently recursively
launch new copies of make for each makefile. Obviously, that would be
> -----Original Message-----
> From: rake-devel-bounces at rubyforge.org
> [mailto:rake-devel-bounces at rubyforge.org] On Behalf Of Leon Yeh
> Sent: Friday, December 02, 2005 5:54 PM
> To: rake-devel at rubyforge.org
> Subject: [Rake-devel] Multiple Rakefile build
> Hi All, I have just started using Rake, I usually use ant,
> but got caught the Ruby fever :-)
> I have been using RoR for web development and in need rake to
> do data migration. I wanted to build a hirarchical build
> system similar to Makefile. Example below
> What I want to do is that the top-level Rakefile go thru the
> folders and
> invoke each of Rakefile. Below is my first rakefile, but it
> was not working. What is the correct way to do this ? Any
> help are greatly appreciated.
> require 'rake'
> desc "Migrate Employee Table"
> task :employeeTbl do
> cd "task_empTbl"
> cd "../"
> task :default => [
> Thanks in advance
> Leon Yeh
> Rake-devel mailing list
> Rake-devel at rubyforge.org
More information about the Rake-devel