committed
Jan
>-Ursprüngliche Nachricht-
>Von: Kevin Jackson [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 21. Mai 2007 08:40
>An: Ant Developers List
>Betreff: Re: Retry task available in svn head
>
>Hi Jan,
>
>> Would this be more useful?
>>
Hi Jan,
Would this be more useful?
public void execute() throws BuildException {
StringBuffer errorMessages = new StringBuffer();
for(int i=0; i<=retryCount; i++) {
try {
nestedTask.perform();
break;
} catch (Exception
>+} catch (Exception e) {
>+if (i+log("Attempt ["+i+"] error occured, retrying...",
e, Project.MSG_INFO);
>+} else {
>+throw new BuildException("Task
["+nestedTask.getTaskName()+"] failed after ["+retryCount+"] atte
+} catch (Exception e) {
+if (i
Hi Jan,
If the nested task does not fail, the loop must be finished.
+public void execute() throws BuildException {
+for(int i=0; i<=retryCount; i++) {
+try {
+nestedTask.perform();
yes there should be a break; here - I will update as soon as eclipse
has
che Nachricht-
>Von: Kevin Jackson [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 18. Mai 2007 10:28
>An: Ant Developers List
>Betreff: Retry task available in svn head
>
>Hi all,
>
>Based on the feedback, I modified the task a little (only support 1
>nested task) and thre
Hi all,
Based on the feedback, I modified the task a little (only support 1
nested task) and threw together some doc.
Please -1 if you think this is unsuitable/broken/smells funny
Thanks,
Kev
-
To unsubscribe, e-mail: [EMAIL P