I have arrange a project layout with a build.xml in the root directory. At the same level I have a directory with tools that I need for that project. These tools are not part of the build, I mean it doesn't contain java code or anything else that is used in the ant build, but it contains a large number of data files with symbolic links. When I run any target (eg. a clean target that just delete a couple of directories) I get an OutOfMemoryError on DirectoryScanner. I wonder if you can exclude a directory from this scan, because even if increment the heap to run Ant, the scan takes too long.
I will assume that you have a fileset directive somewhere in your script which is causing the directory scan. You can always add an 'exclude' directive to the fileset to prevent that tool directory from being considered.
I don't think that I have any fileset on that directory. I'll check that tomorow but, any how it is a very good hit. Thank you very much. Another thing about this directory is that is has many symbolic links and I don't know if all of then are correct.
Joined: Jan 02, 2009
You were absolutely right! In my 'clean' target I had the following:
Thank you again, I wouldn't find it out without your help
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com