Hi there,

Problem:
I am having difficulty with the list and delete functions of the Ant
optional FTP task (derived from the NetComponents classes) on only a
particular machine. The targets return zero rows on completion with no
error:

"listfiles:
      [ftp] Opening FTP connection to remotemachine
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] changing the remote directory
      [ftp] listing files
      [ftp] 0 files listed
      [ftp] disconnecting

BUILD SUCCESSFUL"

Strangely the same listing will work when the remote machine is changed from
the production server to my own Win2000 client with an apparently identical
FTP service (Version 5.0).
 
Is my problem the same as described at
http://www.savarese.org/java/index.html?: 

"DefaultFTPFileLister doesn't work with every FTP server. Some Microsoft and
VMS FTP servers foil it. It is also wasteful of memory in that it parses the
listing into a complete set of FTPFile instances when it could store the
listing and just parse the listing on demand through an iterator."

Does the above affect deletes as well?
Am I able to update the class files with fixes?
Am I doing something incorrectly?

Here are some of our environment details:

Environment of Host-
SunOS 5.7 Generic_106541-17 sun4u sparc SUNW,Ultra-4
java version "1.1.7"
NetComponents 1.3.8a (though the README states 1.3.7)
Ant 1.4.1

Environment of Remote machine-
WinNT Server (Possibly Win2000)
Microsoft FTP Service (Version 5.0)

Attached-
ftptask.xml (view in wordpad)

Command-
ant -file ftptask.xml -Dremote.dir=<dir> -Dremote.host=<rh>
-Dremote.user=<ru> -Dremote.password=<rp>

Thanks for your help,
Douglas.



**********************************************************************
Information in this email is confidential and may be privileged. 
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system. 
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone. 
Thank you for your co-operation.
**********************************************************************

Attachment: ftptask.xml
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to