ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: [Vote] Task API
Date Wed, 09 May 2001 10:33:00 GMT
At 11:55  9/5/01 +0200, Stefan Bodewig wrote:
>Stefan Bodewig <bodewig@apache.org> wrote:
>
>> Peter Donald <donaldp@apache.org> wrote:
>> 
>>> The task interface would be the minimalist interface and would
>>> likely only have one "work" method - namely execute() -
>
>I realized that you didn't specify the return type of execute, void or
>boolean or even something else?
>
>boolean would assist a failOnError-aspect, but on the other side I
>feel that tasks should be self-contained and raise exceptions if they
>fail.  I favor void.

+1 for voidand raise exception on error ;)
Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


Mime
View raw message