can not Rake :), please help.

O

ozizus

Hi, I dont get what is wrong with this rakefile:

#====================================
task :default => :TTList

checkfile = "arrangement0/list.txt"
task :TTList => checkfile do
regenarate
end
#===================================

So, regenarate function regenarates bunch of files, including the
checkfile. When I call rake, it should run :TTList task, but only if
checkfile is not there. This rakefile runs :TTList even if the
checkfile exists.

thx.
 
B

Bira

So, regenarate function regenarates bunch of files, including the
checkfile. When I call rake, it should run :TTList task, but only if
checkfile is not there. This rakefile runs :TTList even if the
checkfile exists.

If I recall correctly, it works the other way around. You're defining
the checkfile as a pre-requisite of TTList, so it would only run if
the checkfile was already present. If you remove it, does TTList run?
 

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

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,310
Members
47,978
Latest member
SheriBolli

Latest Threads

Top