Browse Source

Add Ftp ant task timeout documentation also updated

master
jkf 5 years ago
parent
commit
1702b68043
2 changed files with 10 additions and 3 deletions
  1. +7
    -1
      manual/Tasks/ftp.html
  2. +3
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java

+ 7
- 1
manual/Tasks/ftp.html View File

@@ -190,7 +190,7 @@ connection.</p>
<tr>
<td>preservelastmodified</td>
<td>Give the copied files the same last modified time as the original source files (applies to
getting files only). (<strong>Note</strong>: Ignored on Java 1.1)</td>
getting files only). (<strong>Note</strong>: Ignored on Java 1.1)</td>11
<td>No; defaults to <q>false</q></td>
</tr>
<tr>
@@ -219,6 +219,12 @@ connection.</p>
disable it in certain firewall scenarios. <em>since Ant 1.8.0</em></td>
<td>No; default is <q>true</q></td>
</tr>
<tr>
<td>dataTimeout</td>
<td>Sets a timeout in milliseconds used when waiting for data on the data connection.
A value of 0 means an infinite timeout.<em>since Ant 1.10.7</em></td>
<td>No</td>
</tr>
<tr>
<td colspan="3" class="left">
<p><strong>The following attributes


+ 3
- 2
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java View File

@@ -1697,11 +1697,12 @@ public class FTP extends Task implements FTPTaskConfig {
}

/**
* Sets the timeout on the data connection.
* Sets the timeout on the data connection in milliseconds.
* Any negative value is discarded and leaves the default
* A value of 0 means an infinite timeout
*
* @param dataTimeout int
* @since Ant 1.10.6
* @since Ant 1.10.7
*/
public void setDataTimeout(int dataTimeout) {
if(dataTimeout >= 0) {


Loading…
Cancel
Save