You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/05/14 16:44:12 UTC

DO NOT REPLY [Bug 36748] Ant checksum totalproperty does not match across platforms.

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.