[Rake-devel] [NEWBIE] task prerequisits and failures

Assaf Arkin assaf at labnotes.org
Tue Jul 15 04:48:10 EDT 2008

On Mon, Jul 14, 2008 at 11:19 PM, Ittay Dror (Freiman) <ittay.dror at gmail.com>

> Hello,
> I hope this is the proper place to ask newbie questions, if not,
> please direct me.
> I'm looking at the source of rake.rb and it looks like rake doesn't
> pay attention to whether prerequisites were executed ok before
> executing the task itself (in invoke_with_callchain: 'execute' just
> follows 'invoke_prerequisites' and both don't seem to raise any
> exceptions).
> How can I stop invocation of dependent tasks? By raising an exception
> from the prerequisite action?

If the task fails, raise an exception.  That will just bubble up and get
Rake to dump the exception and stop executing.

-- Assaf

> Thank you,
> Ittay
> _______________________________________________
> Rake-devel mailing list
> Rake-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rake-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rake-devel/attachments/20080715/74daac1d/attachment.html>

More information about the Rake-devel mailing list