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=14121>.
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=14121

AbstractFileSet does not reuse the Directory Scanner instance

           Summary: AbstractFileSet does not reuse the Directory Scanner
                    instance
           Product: Ant
           Version: 1.5.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When a scriot needs to execute multiple file based tasks on the same set of
files, one will think that the better way to do it is declare a Fileset with and
id, and use a reference to it in all the tasks that need to perform on this
files. But the  problem is that the AbstractFileSet creates a new instance of
DirectoryScanner everytime the method getDirectoryScanner is called. This lead
to a deep scan in every task that execute on this FileSet ... which mean bad
performance and unpredictable results because if a revious task affect the files
is possible that the second will not received the same list of files.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to