Have you looked at commons-net? Ant 1.5.4 uses NetComponents but Ant 1.6 will use commons-net instead of NetComponents. I wrote a some new functionality there. See the package org.apache.commons.net.ftp.parser at http://jakarta.apache.org/commons/net/apidocs/index.html
This won't solve your problem, but I understand your problem very well. FTP is very loosely specified and says nothing about the date formats that will be used. I had long suspected that this might break in non-English locales and at one point I asked for anyone to come forward who had this problem. See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14333 and http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=5237 In close to a year, no one ever has responded with these concerns. I began to think that most FTP servers must use English locale dates and this was not a big problem. You are the first. What type of system is this? I would very much like to discuss this further with you. Steve Cohen Sr. Software Engineer Sportvision, Inc. scohenATSportvisionDOTcom -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 10:23 AM To: [EMAIL PROTECTED] Subject: FTP: I hacked DefaultFTPFileListParser to handle date in french listings Hi all, I had troubles making the FTP task to work with Ant 1.5.4 on my french ftp listings. In U.S. listings, month appears before day; but in french listings, day appears before month. The DefaultFTPFileListParser implementation considers that month comes first, and thus ignores timestamp differences ("depends" or "newer" attribute has no effect). I made an ugly hack on com.oroinc.net.ftp.DefaultFTPFileListParser : I inverted the order in which month and day are parsed. Now it works perfectly for me. Only new or updated files are copied. I hope a clean implementation of "localized" ListParsers could become available with a forthcoming release... Thank You for your time -- Laurent IZAC --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
