diff --git a/manual/Tasks/ftp.html b/manual/Tasks/ftp.html index b25f332e4..dad5ad939 100644 --- a/manual/Tasks/ftp.html +++ b/manual/Tasks/ftp.html @@ -190,7 +190,7 @@ connection.

preservelastmodified Give the copied files the same last modified time as the original source files (applies to - getting files only). (Note: Ignored on Java 1.1) + getting files only). (Note: Ignored on Java 1.1)11 No; defaults to false @@ -219,6 +219,12 @@ connection.

disable it in certain firewall scenarios. since Ant 1.8.0 No; default is true + + dataTimeout + Sets a timeout in milliseconds used when waiting for data on the data connection. + A value of 0 means an infinite timeout.since Ant 1.10.7 + No +

The following attributes diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java index 3be911a4d..ad16f41b7 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java @@ -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) {