From 2f1d7a8811e24023265696db1f4ba236d506ab9b Mon Sep 17 00:00:00 2001
From: Steve Loughran
Date: Fri, 19 Oct 2001 00:48:54 +0000
Subject: [PATCH] bug #4111: ftp task does not work with a Windows 2000 ftp
server with "MSDOS" directory listing. This is now documented.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269806 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/OptionalTasks/ftp.html | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/docs/manual/OptionalTasks/ftp.html b/docs/manual/OptionalTasks/ftp.html
index cd161b2fc..21c54d3e0 100644
--- a/docs/manual/OptionalTasks/ftp.html
+++ b/docs/manual/OptionalTasks/ftp.html
@@ -23,6 +23,11 @@ instead.
See the section on directory based
tasks, on how the inclusion/exclusion of files works, and how to
write patterns.
+
+Warning: for the get and delete actions to work properly
+with a Windows 2000 ftp server, it needs to be configured to generate
+Unix style listings, and not the default MS-DOS listing. Or someone needs to write
+the code to parse MS-DOS listings -any takers?
Parameters
@@ -196,11 +201,13 @@ into. The file structure from the FTP site is preserved on the local machine.
Logs in to ftp.apache.org
as anonymous
and
recursively downloads all .html files from default directory for that user
into the htdocs/manual
directory on the local machine.
+.
Deleting Files
As you've probably guessed by now, you use nested fileset elements to
select the files to delete from the remote FTP server. Again, the
filesets are relative to the remote directory, not a local directory. In
fact, the dir attribute of the fileset is ignored completely.
+
<ftp action="del"
server="ftp.apache.org"