From 943fa3a9756d9e9b54fcdfd4c1e344fe258ab93c Mon Sep 17 00:00:00 2001 From: Kevin Jackson Date: Fri, 18 May 2007 08:25:32 +0000 Subject: [PATCH] -retry task container git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@539309 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/retry.html | 56 ++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 docs/manual/CoreTasks/retry.html diff --git a/docs/manual/CoreTasks/retry.html b/docs/manual/CoreTasks/retry.html new file mode 100644 index 000000000..84a8ae573 --- /dev/null +++ b/docs/manual/CoreTasks/retry.html @@ -0,0 +1,56 @@ + + + + + + +Retry Task + + +

Retry

+

Description

+

Retry is a container task - it can contain an Ant task. The nested +task is executed, if an error occurs, the task can be executed again without +the build failing. The amount of times that the nested task can be 'retried' +is configurable.

+ +

Parameters

+ + + + + + + + + + + +
AttributeDescriptionRequired
retrycountnumber of times to attempt to execute the nested taskYes
+

Any valid Ant task may be embedded within the retry task.

+ +

Example

+
+<retry retrycount="3">
+  <get src="http://www.unreliable-server.com/unreliable.tar.gz" 
+  		dest="/home/retry/unreliable.tar.gz"/>
+</retry>
+
+

This example shows how to use <retry> to wrap a task which must interact with an unreliable network resource.

+ + \ No newline at end of file