Rake: How to keep proceeding if one command fails?

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

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs