ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46527] New: Sort using date comparator on fileset filters entries
Date Wed, 14 Jan 2009 11:20:13 GMT

           Summary: Sort using date comparator on fileset filters entries
           Product: Ant
           Version: 1.7.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core

Created an attachment (id=23116)
 --> (
Test example with output

The implementation of the Sort (sorted resource collection) using a TreeMap
results in a filtering when the entries have the same key; the last entry added
will be the one listed.
E.g I have tried to sort a list of files using the Date comparator and only 29
of the 49 files are listed because multiple files has the exact same last
modified date.
My suggestion is that the implementation should use the Collections sort.

current workaround is:
  <fileset dir="${path.dist.lib}" includes="**/*.jar" />
  <reverse xmlns="">
    <date />
  <name xmlns="" />

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message