Rake complains about missing "default" task

R

RichardOnRails

Hi,

I got an example rakefile from the webpage
http://jasonseifer.com/2010/04/06/rake-tutorial
which displays "Published: April 6, 2010 at 4:25 AM"

Below are my results from testing that rakefile in a Command window on
WinXP-Pro/SP3 running Rails 2.3.5, where Rake complained "Don't know
how to build task 'default'". How do I get it to run?

Thanks in Advance,
Richard

=== Command Window ===
K:\Temp>dir
Volume in drive K is K02-100G_NT
Volume Serial Number is B00C-F65F

Directory of K:\Temp

07/09/2010 05:25 PM <DIR> .
07/09/2010 05:25 PM <DIR> ..
07/09/2010 05:01 PM 15 file_in.txt
07/09/2010 05:21 PM 103 rakefile
2 File(s) 118 bytes
2 Dir(s) 56,653,742,080 bytes free

K:\Temp>type rakefile
directory "tmp"

file "hello.tmp" => "tmp" do
sh "echo 'Hello' >> 'tmp/hello.tmp'"
end

K:\Temp>rake
(in K:/Temp)
rake aborted!
Don't know how to build task 'default'

(See full trace by running task with --trace)

K:\Temp>
 
R

RichardOnRails

Hi,

I got an example rakefile from the webpagehttp://jasonseifer.com/2010/04/06/rake-tutorial
which displays "Published: April 6, 2010 at 4:25 AM"

Below are my results from testing that rakefile in a Command window on
WinXP-Pro/SP3 running Rails 2.3.5, where Rake complained "Don't know
how to build task 'default'".  How do I get it to run?

Thanks in Advance,
Richard

=== Command Window ===
K:\Temp>dir
 Volume in drive K is K02-100G_NT
 Volume Serial Number is B00C-F65F

 Directory of K:\Temp

07/09/2010  05:25 PM    <DIR>          .
07/09/2010  05:25 PM    <DIR>          ..
07/09/2010  05:01 PM                15 file_in.txt
07/09/2010  05:21 PM               103 rakefile
               2 File(s)            118 bytes
               2 Dir(s)  56,653,742,080 bytes free

K:\Temp>type rakefile
directory "tmp"

  file "hello.tmp" => "tmp" do
    sh "echo 'Hello' >> 'tmp/hello.tmp'"
  end

K:\Temp>rake
(in K:/Temp)
rake aborted!
Don't know how to build task 'default'

(See full trace by running task with --trace)

K:\Temp>

Woops! I posted this to the wrong NG. Sorry!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top