commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Cohen <sco...@javactivity.org>
Subject Re: [net] FTP client date parsing: new format
Date Thu, 24 Mar 2005 00:45:59 GMT
Wow!  Thanks for showing us this.

That's a format I've not seen before.  Where did it come from?  Is it by 
any chance a public site?  In past experience, all unix ftp servers, 
which I presume this to be, have used abbreviations for the months.

There IS a new system in the latest version of commons-net that would 
allow you to specify an alternate date format.  I consider this a nice 
validation of the new design - it offers a way to work with a format we 
didn't even know existed.

It's not hooked up to ant yet but that was always my intent.

What say, other commons-net committers?  Are we ready to build 1.4? 
Then I could add hooks for this new system in Ant.

Steve Cohen

Neeme Praks wrote:
> Hi all!
> 
> Attached is a sample directory listing that breaks the 1.3.0 commons-net 
> FTP client directory parsing, at least when used from Ant task. The 
> basic difference is that the dates are specified as numbers (2005-03-21 
> 14:26), not as month names.
> I saw on the mailing list that there is now a possibility to use custom 
> date parsers, but I'm not sure how well that would mix with the Ant 
> <ftp> task.
> Or maybe there is already a fix for this in CVS and I can just build 
> from CVS?
> 
> Thanks,
> Neeme
> 
> 
> ------------------------------------------------------------------------
> 
> ftp> ls -l
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for '/bin/ls'.
> total 356
> -rw-r--r--   1 inpoc inpoc   385 2005-03-21 14:26 about.vsp
> -rw-r--r--   1 inpoc inpoc    27 2005-03-21 14:26 animations.vsp
> -rw-r--r--   1 inpoc inpoc   778 2005-03-21 14:27 animations.wap.vsp
> -rw-r-----   1 inpoc inpoc   365 2005-03-21 14:27 animations.web.vsp
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-08 11:12 bite.inpoc.lt
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-08 11:12 biterus.inpoc.lt
> -rw-r--r--   1 inpoc inpoc   198 2005-03-21 14:27 crossdomain.xml
> -rw-r--r--   1 inpoc inpoc    27 2005-03-21 14:27 dynamic_sms.vsp
> -rw-r--r--   1 inpoc inpoc  1088 2005-03-21 14:27 dynamic_sms.wap.vsp
> -rw-r-----   1 inpoc inpoc   355 2005-03-21 14:27 dynamic_sms.web.vsp
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-08 11:12 emtgo.inpoc.ee
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-08 11:12 emtgorus.inpoc.ee
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-21 12:44 face.inpoc.lv
> drwxr-xr-x   4 inpoc inpoc  4096 2004-10-21 14:45 flash
> lrwxrwxrwx   1 inpoc inpoc    28 2005-03-02 18:06 gfx -> ../../www.inpoc.no/ROOT/gfx/
> drwxr-xr-x   2 inpoc inpoc  4096 2004-10-27 14:11 gfx.wap
> lrwxrwxrwx   1 inpoc inpoc    26 2005-03-02 18:06 globalgfx -> ../../../global/globalgfx/
> lrwxrwxrwx   1 inpoc inpoc    31 2005-03-02 18:06 globalincludes -> ../../../global/globalincludes/
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-08 11:12 golive.inpoc.ee
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-08 11:12 golive.inpoc.lt
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-08 11:12 goliverus.inpoc.ee
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-08 11:12 goliverus.inpoc.lt
> drwxr-xr-x   2 inpoc inpoc  4096 2004-09-08 23:09 hei.inpoc.ee
> -rw-r--r--   1 inpoc inpoc   381 2005-03-21 14:27 help.vsp
> -rw-r--r--   1 inpoc inpoc  2232 2005-03-21 14:27 help.wap.vsp
> drwxr-xr-x   2 inpoc inpoc  4096 2004-11-09 13:33 ieskok.inpoc.lt
> lrwxrwxrwx   1 inpoc inpoc    33 2005-03-02 18:06 includes -> ../../www.inpoc.no/ROOT/includes/
> -rw-r--r--   1 inpoc inpoc   412 2005-03-21 14:27 index.vsp
> -rw-r--r--   1 inpoc inpoc  1027 2004-09-08 23:09 index.wap.vsp
> drwxrwxr-x   3 inpoc inpoc  4096 2004-12-21 16:07 inpoc.delfi.ee
> drwxr-xr-x   2 inpoc inpoc  4096 2004-09-24 13:45 kangazoo.inpoc.lv
> drwxr-x---  11 inpoc inpoc  4096 2005-01-17 15:49 localgfx
> -rw-r--r--   1 inpoc inpoc    27 2005-03-21 14:27 logos.vsp
> -rw-r--r--   1 inpoc inpoc  1081 2005-03-21 14:27 logos.wap.vsp
> -rw-r-----   1 inpoc inpoc   351 2005-03-21 14:27 logos.web.vsp
> lrwxrwxrwx   1 inpoc inpoc    23 2005-03-02 18:06 macros -> ../../../global/macros/
> -rw-r--r--   1 inpoc inpoc    38 2005-03-21 14:27 menu.vsp
> drwxr-xr-x   2 inpoc inpoc  4096 2004-10-20 09:56 mixfm.inpoc.lv
> drwxrwxr-x   2 inpoc inpoc  4096 2004-12-22 12:24 mobiil.delfi.ee
> -rw-r--r--   1 inpoc inpoc    27 2005-03-21 14:27 mobilegames.vsp
> -rw-r--r--   1 inpoc inpoc  1292 2005-03-21 14:27 mobilegames.wap.vsp
> -rw-r-----   1 inpoc inpoc  1356 2005-03-21 14:27 mobilegames.web.vsp
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-08 11:13 omni.inpoc.lt
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-08 11:13 omnirus.inpoc.lt
> drwxr-x---   4 inpoc inpoc  4096 2004-11-24 11:23 partners
> -rw-r-----   1 inpoc inpoc  2162 2005-03-21 14:28 phonecontent.browse.wap.vsp
> -rw-r-----   1 inpoc inpoc  1280 2005-03-21 14:28 phonecontent.first.wap.vsp
> -rw-r-----   1 inpoc inpoc  1145 2005-03-21 14:28 phonecontent.search.wap.vsp
> -rw-r-----   1 inpoc inpoc   346 2005-03-21 14:28 phonecontent.vsp
> -rw-r-----   1 inpoc inpoc   994 2005-03-21 14:28 phonecontent.xml.vsp
> -rw-r--r--   1 inpoc inpoc    27 2005-03-21 14:28 picturemessages.vsp
> -rw-r--r--   1 inpoc inpoc  1141 2005-03-21 14:28 picturemessages.wap.vsp
> -rw-r-----   1 inpoc inpoc   370 2005-03-21 14:28 picturemessages.web.vsp
> drwxrwxr-x   2 inpoc inpoc  4096 2005-02-23 09:15 point.inpoc.lt
> drwxrwxr-x   2 inpoc inpoc  4096 2005-02-23 09:15 rate.inpoc.ee
> -rw-rw-r--   1 inpoc inpoc  1578 2005-03-21 14:28 reg.vsp
> -rw-r--r--   1 inpoc inpoc    27 2005-03-21 14:28 ringtones.vsp
> -rw-r--r--   1 inpoc inpoc  1640 2005-03-21 14:28 ringtones.wap.vsp
> -rw-r-----   1 inpoc inpoc   785 2005-03-21 14:28 ringtones.web.vsp
> drwxrwxr-x   2 inpoc inpoc  4096 2005-02-23 09:29 rus.inpoc.ee
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-04 13:36 rus.inpoc.lt
> drwxr-x---   2 inpoc inpoc  4096 2004-12-09 12:45 rus.inpoc.lv
> -rw-r--r--   1 inpoc inpoc 12316 2004-10-27 14:11 searchresult.vsp
> -rw-r-----   1 inpoc inpoc   331 2005-03-21 14:28 services.vsp
> lrwxrwxrwx   1 inpoc inpoc    23 2005-03-02 18:06 static -> ../../../global/static/
> drwxr-xr-x   5 inpoc inpoc  4096 2005-03-08 11:14 templates
> -rw-r-----   1 inpoc inpoc   625 2004-11-25 21:40 test2.wap.vsp
> -rw-rw-r--   1 inpoc inpoc  1210 2005-03-21 14:29 test.ee.wap.vsp
> -rw-rw-r--   1 inpoc inpoc  1218 2005-03-21 14:29 test.lt.wap.vsp
> -rw-rw-r--   1 inpoc inpoc  1212 2005-03-21 14:29 test.lv.wap.vsp
> -rw-r-----   1 inpoc inpoc  3332 2004-11-03 18:26 test.vsp
> -rw-r--r--   1 inpoc inpoc   658 2005-03-21 14:29 test.wap.vsp
> -rw-r-----   1 inpoc inpoc   388 2004-11-22 14:52 textservices.vsp
> -rw-r-----   1 inpoc inpoc  1515 2005-03-21 14:29 textsms.vsp
> -rw-r--r--   1 inpoc inpoc    27 2005-03-21 14:29 voicemessages.vsp
> -rw-r-----   1 inpoc inpoc   851 2005-03-21 14:29 voicemessages.wap.vsp
> -rw-r-----   1 inpoc inpoc   403 2005-03-21 14:29 voicemessages.web.vsp
> -rw-r--r--   1 inpoc inpoc    27 2005-03-21 14:29 wallpapers.vsp
> -rw-r--r--   1 inpoc inpoc   775 2005-03-21 14:29 wallpapers.wap.vsp
> -rw-r-----   1 inpoc inpoc   365 2005-03-21 14:29 wallpapers.web.vsp
> drwxr-x---   3 inpoc inpoc  4096 2004-11-24 19:02 wapdc
> drwxr-xr-x   2 inpoc inpoc  4096 2004-12-01 11:59 wap.inpoc
> drwxr-xr-x   2 inpoc inpoc  4096 2005-03-08 11:14 wap.inpoc.ee
> drwxr-xr-x   2 inpoc inpoc  4096 2004-10-29 15:50 wap.inpoc.lt
> drwxr-xr-x   2 inpoc inpoc  4096 2004-10-27 17:57 wap.inpoc.lv
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-08 11:14 waprus.inpoc.ee
> drwxrwxr-x   2 inpoc inpoc  4096 2005-03-08 11:15 waprus.inpoc.lt
> drwxrwxr-x   5 inpoc inpoc  4096 2004-11-25 15:37 WEB-INF
> drwxr-xr-x   2 inpoc inpoc  4096 2004-09-24 13:50 www.inpoc
> drwxrwxr-x   4 inpoc inpoc  4096 2005-02-06 21:06 www.inpoc.ee
> drwxr-xr-x   3 inpoc inpoc  4096 2004-11-30 14:27 www.inpoc.lt
> drwxr-xr-x   2 inpoc inpoc  4096 2004-12-02 19:59 www.inpoc.lv
> 226 Transfer complete.
> ftp>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message