DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=27437>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27437 FTP "get" and "list" tasks fail ------- Additional Comments From [EMAIL PROTECTED] 2004-09-24 10:12 ------- I agree with Steve - we need a generic problem to deal with the date formatting issues that occur. I think finding an *elegant* solution is very, very difficult. A lot of FTP servers can not be reliably identified (I've tried a few AIX servers this morning, from which they returned nothing useful or consistent from SYST), and the date format can vary wildly based on server configuration. Witness the IIS FTP server options: http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2000/en/server/iis/htm/core/iiprsovr.htm and http://www.microsoft.com/windows2000/en/server/iis/htm/asp/apro1k9x.htm Two possibilities spring to mind: 1. We could match an entry from an initial 'ls' against a couple of regexes designed exclusively to isolate and identify the date component, repeatedly attempting to match until we find one that fits (sort of like an autodetection of date formats). I'm not sure how reliable this would be in practise, but feel it should work. 2. We could explicitly add a setDateFormat() to the FTPClient class, and allow a user to plug in a date format of choice. This could also be accessed via an optional property from the Ant task. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
