Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 44462 invoked from network); 4 Nov 2003 16:45:17 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Nov 2003 16:45:17 -0000 Received: (qmail 49141 invoked by uid 500); 4 Nov 2003 16:45:06 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 49116 invoked by uid 500); 4 Nov 2003 16:45:06 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 49075 invoked from network); 4 Nov 2003 16:45:05 -0000 Received: from unknown (HELO psa-relay6.mpsa.com) (194.51.20.12) by daedalus.apache.org with SMTP; 4 Nov 2003 16:45:05 -0000 Received: from aigz2.domino.inetpsa.com ([192.168.2.31]) by psa-relay6.mpsa.com (Netscape Messaging Server 4.15) with ESMTP id HNU6MH02.W55 for ; Tue, 4 Nov 2003 17:47:05 +0100 Subject: FTP: I hacked DefaultFTPFileListParser to handle date in french listings To: commons-user@jakarta.apache.org X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 Message-ID: From: laurent.izac@mpsa.com Date: Tue, 4 Nov 2003 17:23:26 +0100 X-MIMETrack: Serialize by Router on AIGZ2.DOMINO/S/PSA(Release 5.0.8 MIAS58UK4E TTRT58WUXJ TCHL538RV3 RSCF53ZMTC BSUN53DJBQ PLYS562UHL JFEN5F8N4Y MSAN5387VG BSUN5HJTSG DBAR5CJJJS MIAS5MCJCL MIAS5E4N9Q |July 18, 2003) at 04/11/2003 17:45:04 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org