Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant DirectoryScanner problem

 
Joaquin MorcateJarillo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.

Thank you
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joaquin MorcateJarillo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Peter,

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.


Joaquin
 
Joaquin MorcateJarillo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You were absolutely right! In my 'clean' target I had the following:


Thank you again, I wouldn't find it out without your help

Joaquin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic