[Rake-devel] [NEWBIE] task prerequisits and failures
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>
> 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
> 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.
> Thank you,
> Rake-devel mailing list
> Rake-devel at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rake-devel