Re: [net] FTPclient: keeping track of dates of files on the server

2005-03-25 Thread Steve Cohen
Neeme: Is Ant the right tool for your job? Ant is a build tool, not an all-purpose scripting language. If what you describe is all you're doing, you might consider a script written in perl or python, or perhaps in java using commons-net directly. Or if you're in a j2ee container environment

Re: [net] FTPclient: keeping track of dates of files on the server

2005-03-24 Thread Neeme Praks
ok, clear enough. I'll look into the source code of the ftp task and play around with it a bit. Another suggestion for that task is to allow retry-in-case-of-failure, not just abort or ignore as in the current version. But I'll take those issues up on Ant list. My use case is simple: I'm using

Re: [net] FTPclient: keeping track of dates of files on the server

2005-03-24 Thread Steve Cohen
Sorry I didn't read far enough. This is more properly a discussion for the Ant list. All we handle here is the raw FTP. Ant's FTP task depends on commons-net, though, and until we release the timezone-using version of commons-net, ant will not have the tools to do what you need. I may be spea

Re: [net] FTPclient: keeping track of dates of files on the server

2005-03-24 Thread Neeme Praks
Well, as I wrote in my previous email, timezone setting does help, but I would like to take it one step further. When just using plain timezone difference calculation, you are still comparing server time to the local time and those usually are out-of-sync. I would like to have it 100% precise: to

Re: [net] FTPclient: keeping track of dates of files on the server

2005-03-23 Thread Steve Cohen
Spot on again, Mr. (Ms.?) Praks. And again, the latest version of CVS allows the specification of a server time zone, for precisely this reason. We need to get this released and then supported in Ant. Steve Cohen Neeme Praks wrote: Hi again! Another issue I've been thinking about. Correct me if

[net] FTPclient: keeping track of dates of files on the server

2005-03-23 Thread Neeme Praks
Hi again! Another issue I've been thinking about. Correct me if I'm wrong but the current way that FTP client checks if the file locally is newer or not is the following: 1. it takes the time from the server 2. manipulates the time according to timezone settings 3. compares it to the time on the l