From: Joe Wirtley Date: 2008-02-23T10:15:14+09:00 Subject: Nested Rails Files I'm having trouble making nested Rakefiles work. Say I have the following: + Raketest Rakefile + Child Rakefile This is a Raketest folder containing a rakefile, and a child folder containing a different rakefile. In the Raketest folder, I have the following Rakefile: task :default do sh "cd Child;rake" end The Child folder under this has the following Rakefile: task :default do puts "Child Rake Default task" end The following shows the result of running rake first in the child folder, then in the Raketest folder: C:\Raketest\Child>rake (in C:/Raketest/Child) Child Rake Default task C:\Raketest\Child>cd .. C:\Raketest>rake cd Child;rake (in C:/Raketest) The system cannot find the path specified. rake aborted! Command failed with status (1): [cd Child;rake...] C:/Raketest/rakefile.rb:2 (See full trace by running task with --trace) When I run rake in the child folder, it works. When I run rake in the Raketest folder, I get the "The system cannot find the path specified." message. So what am I missing? Just for good measure, I uninstalled all versions of Rake (via gem) then installed the latest version, which didn't change anything. I've attached my zipped contrived sample. I'd appreciate any help. Attachments: http://www.ruby-forum.com/attachment/1474/Raketest.zip -- Posted via http://www.ruby-forum.com/.