ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34941] - FTP uptodate calculations wrong
Date Thu, 19 May 2005 00:51:17 GMT
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=34941>.
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=34941





------- Additional Comments From scohen@apache.org  2005-05-19 02:51 -------
It would seem you problem would not be fixed by the change I want to make.  That
change is simply to change this:

       if (this.action == SEND_FILES) {
           return remoteTimestamp + timeDiffMillis > localTimestamp;
       } else {
           return localTimestamp > remoteTimestamp + timeDiffMillis;
       }

to this:

       if (this.action == SEND_FILES) {
           return remoteTimestamp + timeDiffMillis >= localTimestamp;
       } else {
           return localTimestamp >= remoteTimestamp + timeDiffMillis;
       }

It would fix the problem of equal timestamps updating, but not the problem I see
here which is where the source is older than the destination but still updates.

However, to truly understand what is going on, can you supply the actual ant
target where this is happening with all the <ftp> attributes you are using?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message