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 22148] New: - make the byte-for-byte compairson of files optional on the <different> selector
Date Tue, 05 Aug 2003 20:25:34 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22148>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22148

make the byte-for-byte compairson of files optional on the <different> selector

           Summary: make the byte-for-byte compairson of files optional on
                    the <different> selector
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: daniel.armbrust@mayo.edu


The new <different> selector works like this, according to the documentation:

1. If there is no 'other' file, it's different.
2. Files with different lengths are different.
3. If ignoreFileTimes is turned off, then differing file timestamps will cause
files to be regarded as different.
4. Finally a byte-for-byte check is run against the two files 

A byte for byte compairson is far to slow to use for copying large amounts of
files across a network connection.  I was going to propose that we add a new
step after 3 that would do an MD5 compairson, and then make step 4 optional but
then realized that you have to read the whole file to compute an MD5.  So that
wouldn't really help.  

So I would like to ask that step 4 be made optional, so that when we can avoid
the time expense of comparing the files if necessary.

Also, could this be done before 1.6 goes final?

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


Mime
View raw message