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 14121] New: - AbstractFileSet does not reuse the Directory Scanner instance
Date Thu, 31 Oct 2002 10:33:27 GMT
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: ant-dev@jakarta.apache.org
        ReportedBy: of_jakarta@gmx.net


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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message