ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raja Nagendra Kumar <>
Subject DirectoryScanner cache to boost performance
Date Sun, 13 Sep 2009 10:56:15 GMT


We have a custom tasks which use DirectoryScanner to eliminate the need for
developers trying to reference things by its relative path.

However, DirectoryScanner is so main tries with different exclude and
include pattern, which is resulting in perf issues. 

In this context, is there a way to let the DirectoryScanner read the entire
file list only once in the entire ant session and every instance of
DirectoryScanner  and its  scans() would use such set to find the files
based on include and exclude patterns.

This approach would enable boost as finding the list of files available
search is avoided.

Raja Nagendra Kumar,
-Web 2.0 Excellence
View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message