From: "S. Robert James" Date: 2006-11-18T05:00:10+09:00 Subject: Re: Rake, Namespaces, and dependencies Thanks. Mauricio Fernandez wrote: > On Sat, Nov 18, 2006 at 03:20:08AM +0900, S. Robert James wrote: > > > > S. Robert James wrote: > > > I can't figure out the correct syntax in a Rakefile to say that a > > > certain task depends on a task in a different namespace. What is it? > > > > task :ci => [:rcov_params, namespace(:test)[:rcov] ] > > doesn't work > > $ cat Rakefile > namespace :foo do > namespace :bar do > desc "nested baz" > task :baz do > puts "foo:bar:baz" > end > end > > desc "outer baz" > task :bar => "foo:bar:baz" do > puts "foo:bar" > end > end > $ rake -T > (in /home/batsman/mess/2006/46) > rake foo:bar # outer baz > rake foo:bar:baz # nested baz > $ rake foo:bar > (in /home/batsman/mess/2006/46) > foo:bar:baz > foo:bar > > > -- > Mauricio Fernandez - http://eigenclass.org - singular Ruby