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 40175] New: - filesets are always sorted
Date Thu, 03 Aug 2006 08:46:30 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=40175>.
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=40175

           Summary: filesets are always sorted
           Product: Ant
           Version: 1.6.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: luca.distefano@wuerth-phoenix.com


if you use 
<fileset dir=".." includesfile="includes.txt"/>
includes.txt contains for example:

file1.xml
file4.xml
file2.xml
file3.xml

getting the included files they will be returned sorted by name

file1.xml
file2.xml
file3.xml
file4.xml

this behaviour is not expected and should be at least switchable.
this problem force the use of hardcoded (in the build.xml) list of files when a
particular order is needed

the sorting is performed in 
org.apache.tools.ant.DirectoryScanner.getIncludedFiles() and
.getIncludedDirectories()
performs an Arrays.sort()

-- 
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