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 stopped doing some updating

+            } catch (Exception e) {
+                if (i<retryCount) {
+                    log("Attempt ["+i+"] error occured, retrying...", e, 
Project.MSG_INFO);
+                } else {
+                    throw new BuildException("Task ["+nestedTask.getTaskName()+"] failed 
after ["+retryCount+"] attempts, giving up");
+                }
+            }
+        }
+    }

Thanks for the catch, just shows that I don't have very good unit
tests, have to add that one.

Kev

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to