ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36748] Ant checksum totalproperty does not match across platforms.
Date Fri, 14 May 2010 14:44:12 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=36748

--- Comment #2 from mwalsh@chartwelltechnology.com 2010-05-14 10:44:10 EDT ---
Just tried this out on CentOS5 and Windows XP (SP3) using Ant 1.8.1.

Your fix only works if filenames are unique across all directories.

The following works for all, using relative paths instead of fileName().

Arrays.sort(keyArray, new Comparator() {
       public int compare(Object o1, Object o2) {
          File f1 = (File) o1;
          File f2 = (File) o2;
      return f1 == null ? (f2 == null ? 0 : -1)
             : (f2 == null ? 1
                :
relativeFilePaths.get(f1).toString().compareTo(relativeFilePaths.get(f2).toString())
                );
        }
    });

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Mime
View raw message