Hmm, I _did_ attach the documentation file but it seems to have been
dropped somewhere along the way. Here it is again as a text file (save
as waitfor.html).
Regards,
Denis
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>Apache Ant User Manual</title>
</head>
<body>
<h2>Waitfor</h2>
<h3>Description</h3>
<p>Blocks execution until a set of specified conditions become true. This is
intended
to be used with the <a href="parallel.html">parallel</a> task to
synchronize a set of processes.</p>
<p>The conditions to wait for are defined in <a
href="waitfor.html#nested">nested elements</a>, if multiple conditions
are specified, then the task will wait until all conditions are true..</p>
<p></p>
<p>The time attributes (maxwait and checkevery) are specified in milliseconds
unless the values are followed by one of the following suffixes:
"ms",
"s", "m", "h" which cause the value to be
interpreted
as milliseconds, seconds, minutes or hours.</p>
<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td valign="top"><b>Attribute</b></td>
<td valign="top"><b>Description</b></td>
<td align="center" valign="top"><b>Required</b></td>
</tr>
<tr>
<td valign="top">maxwait</td>
<td valign="top">The maximum amount of time to wait for all the required
conditions
to become true before failing the task. Defaults to 5 minutes.</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
<td valign="top">checkevery</td>
<td valign="top">The amount of time to wait between each test of the
conditions.
Defaults to 200mS.</td>
<td valign="top" align="center">No</td>
</tr>
</table>
<h3><a name="nested">Nested Elements</a></h3>
<p>The following elements each represent a condition which must become true
before the task will complete.</p>
<h4>file</h4>
<p>The <code>file</code> condition checks for the existence of a file.
<p>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td width="12%" valign="top"><b>Attribute</b></td>
<td width="78%" valign="top"><b>Description</b></td>
<td width="10%" valign="top"><b>Required</b></td>
</tr>
<tr>
<td valign="top">path</td>
<td valign="top">The pathname of the file which must exist.</td>
<td align="center">Yes.</td>
</tr>
</table>
<h4>http</h4>
<p>The <code>http</code> condition checks for a valid response from a web
server of the specified url.
<p>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td width="12%" valign="top"><b>Attribute</b></td>
<td width="78%" valign="top"><b>Description</b></td>
<td width="10%" valign="top"><b>Required</b></td>
</tr>
<tr>
<td valign="top">url</td>
<td valign="top">The full URL of the page to request. The web server must
return a status code of <500..</td>
<td align="center">Yes.</td>
</tr>
</table>
<h4>socket</h4>
<p>The <code>socket</code> condition checks for the existence of a TCP/IP
listener
at the specified host and port.
<p>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td width="12%" valign="top"><b>Attribute</b></td>
<td width="78%" valign="top"><b>Description</b></td>
<td width="10%" valign="top"><b>Required</b></td>
</tr>
<tr>
<td valign="top">server</td>
<td valign="top">The DNS name or IP address of the server.</td>
<td align="center">Yes.</td>
</tr>
<tr>
<td valign="top">port</td>
<td valign="top">The port number to connect to.</td>
<td align="center">Yes.</td>
</tr>
</table>
<h3>Examples</h3>
<blockquote>
<p><code><waitfor maxwait="30s"><br>
<file path="logs/errors.log"/><br>
</waitfor></code></p>
</blockquote>
<p>waits up to 30 seconds for a file called errors.log to appear in the logs
directory.</p>
<blockquote>
<p><code><waitfor maxwait="3m"
checkevery="500ms"><br>
<http
url="http://localhost/myapp/index.html"/><br>
</waitfor></code></p>
</blockquote>
<p>waits up to 3 minutes (and checks every 500mS) for a web server on localhost
to serve up the specified URL.</p>
<blockquote>
<p><code><waitfor maxwait="10s"><br>
<socket server="dbserver"
port="1521"/><br>
<http
url="http://webserver/mypage.html"/><br>
</waitfor></code></p>
</blockquote>
<p>waits up to 10 seconds for a server on the dbserver machine to begin
listening
on port 1521 and for the http://webserver/mypage.html web page
to become available.</p>
<hr><p align="center">Copyright © 2000,2001 Apache Software Foundation.
All rights
Reserved.</p>
</body>
</html>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>