I ran what I thought was a fairly simple Ant target, to remove unwanted JUnit output from my build tree:
<target name="cleanTests"> <delete> <fileset dir="${SRCROOT}" includes="**/TEST-*.txt"/> </delete> </target> I found that running this target uses memory proportional to the size of my entire tree, rather than using memory proportional to the number of JUnit test output files in my tree, which is what I expected. I got a memory dump of my Ant process when it ran out of memory, and looked inside, and discovered that all the memory was consumed by the 'filesNotIncluded' and 'dirsNotIncluded' Vector objects in the DirectoryScanner class. I don't understand why DirectoryScanner feels the need to track the files and directories that were *not* included in my fileset. How would I use such information in my Ant build? Could this be made optional, so that DirectoryScanner only tracks this information if I ask it to? thanks, bryan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org