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

Assaf Arkin assaf at labnotes.org
Tue Jul 15 12:09:12 EDT 2008


On Tue, Jul 15, 2008 at 4:06 AM, Ittay Dror <ittay.dror at gmail.com> wrote:

>
>
> Assaf Arkin wrote:
>
>
>  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.
>
> Is there a way for a dependent task to ignore failures in the dependency
> tasks?
>

You can invoke the dependent task directly and just catch the error.

Assaf


>
>
>
> -- Assaf
> http://labnotes.org
>
>
>>
>>
>> Thank you,
>> Ittay
>> _______________________________________________
>> Rake-devel mailing list
>> Rake-devel at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rake-devel
>>
>
> ------------------------------
> _______________________________________________
> Rake-devel mailing listRake-devel at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rake-devel
>
>
> --
> --
> Ittay Dror <ittay.dror at gmail.com> <ittay.dror at gmail.com>
>
>
> _______________________________________________
> 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/a8e39e38/attachment-0001.html>


More information about the Rake-devel mailing list