From: "James M. Lawrence" Date: 2008-09-25T09:29:09+09:00 Subject: Re: Rake dependencies unknown prior to running tasks If only the Internet came with an Undo button... Since in the previous example Rake complains unless main_a and main_b are defined, it sort of defeats the whole purpose. This works: task :setup_a do puts "setup_a" end task :setup_b do puts "setup_b" end task :setup => [:setup_a, :setup_b] do puts "setup phase complete. defining new tasks..." task :main_a do puts "main_a" end task :main_b do puts "main_b" end puts "restarting..." throw :restart end task :main => [:main_a, :main_b] do puts "main phase complete." end task :default => [:setup, :main] do puts "all done." end However this defeats Drake, which I suppose is another matter. -- Posted via http://www.ruby-forum.com/.