stevel 02/01/31 23:24:49
Modified: docs/manual/CoreTasks conditions.html
Log:
test returns false (not an exception) if either file is missing, this
provides better update semantics
Revision Changes Path
1.6 +16 -15 jakarta-ant/docs/manual/CoreTasks/conditions.html
Index: conditions.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/conditions.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- conditions.html 29 Jan 2002 17:22:56 -0000 1.5
+++ conditions.html 1 Feb 2002 07:24:49 -0000 1.6
@@ -10,7 +10,7 @@
<h2><a name="Conditions">Conditions</a></h2>
<p>These are the nested elements that can be used as conditions in the
-<a href="condition.html"><code><condition></code></a> and
+<a href="condition.html"><code><condition></code></a> and
<a href="waitfor.html"><code><waitfor></code></a> tasks.</p>
<h4>not</h4>
@@ -143,7 +143,7 @@
</table>
<h4>checksum</h4>
-<p>This condition is identical to the <a href="checksum.html">Checksum</a>
+<p>This condition is identical to the <a href="checksum.html">Checksum</a>
task, all attributes and nested elements of that task are supported,
the property and overwrite attributes are redundant and will be
ignored.</p>
@@ -152,14 +152,14 @@
<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>
+ <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>
+ <tr>
<td valign="top">url</td>
- <td valign="top">The full URL of the page to request. The web server
must
+ <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>
@@ -169,17 +169,17 @@
<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>
+ <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>
+ <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>
+ <tr>
<td valign="top">port</td>
<td valign="top">The port number to connect to.</td>
<td align="center">Yes.</td>
@@ -187,24 +187,25 @@
</table>
<h4>filesmatch</h4>
-<p>Test two files for matching. Both files must exist first.
+<p>Test two files for matching. Nonexistence of either file results in
"false".
This test does a byte for byte comparision, so test time scales with
-byte size. NB: if the files are different sizes or the filenames match
-the slower test is shortcutted.
-
+byte size. NB: if the files are different sizes , one of them is missing
+or the filenames match the answer is so obvious the detailed test is omitted.
+
+
</p>
<table border="1" cellpadding="2" cellspacing="0">
- <tr>
+ <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>
+ <tr>
<td valign="top">file1</td>
<td valign="top">First file to test</td>
<td align="center">Yes.</td>
</tr>
- <tr>
+ <tr>
<td valign="top">file2</td>
<td valign="top">Second file to test</td>
<td align="center">Yes.</td>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>