umagesh 01/11/23 11:17:45
Modified: src/main/org/apache/tools/ant/taskdefs/optional/net FTP.java
Log:
Remotedir need not be specified for ftp to work.
PR: 4821, 5053
Erik Hatcher "jakarta@ehatchersolutions.com"
Remco Slotboom "remco.slotboom@ctp.com"
Revision Changes Path
1.13 +3 -4 jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
Index: FTP.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- FTP.java 2001/10/31 11:04:59 1.12
+++ FTP.java 2001/11/23 19:17:45 1.13
@@ -603,7 +603,7 @@
FTPFile[] files = ftp.listFiles(remoteFile);
- // For Microsoft's Ftp-Service an Array with length 0 is
+ // For Microsoft's Ftp-Service an Array with length 0 is
// returned if configured to return listings in "MS-DOS"-Format
if (files == null || files.length == 0)
{
@@ -916,10 +916,9 @@
"could not change remote directory: "
+
ftp.getReplyString());
}
-
- log(ACTION_STRS[action] + " files");
- transferFiles(ftp);
}
+ log(ACTION_STRS[action] + " files");
+ transferFiles(ftp);
}
}
--
To unsubscribe, e-mail: <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
|