Rake: How to keep proceeding if one command fails????

L

Luc Vantroys

Hi All,

Could you tell me how I could do to have rake to run all the tasks no
matter the result of the previous one(s)?

ex:

file 'xxx.c' => ['xxx.h'] do
if(sh(blablabla))
puts "do this"
else
puts "do this"
end

end

When for exemple the sh command failed, it quits and does not run the
rest of the scripts. How can I make this happen?


Thanks,

Luc
 
N

N Okia

Make systems generally don't do this. Make, ant and the rest are
designed to give up when a failure occurs, so the developer can take
action to correct it.
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top