[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

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

Luc Vantroys

8/3/2006 1:29:00 PM

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

--
Posted via http://www.ruby-....

1 Answer

S Wayne

8/5/2006 5:49:00 PM

0

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.