https://issues.apache.org/bugzilla/show_bug.cgi?id=45499





--- Comment #12 from Stefan Bodewig <[EMAIL PROTECTED]>  2008-10-16 03:29:02 
PST ---
Detecting whether a certain filesystem object is a symbolic link is
surprisingly wasteful in Java (both in terms of time as well as memory
required), so the code tries to avoid these checks unless it suspects it is
caught in an infinite loop.

To make DirectoryScanner suspect it is in such a loop it has to see the same
directory name (only the name without parents) more often than a configurable
number of times.

Between the point in time where Tim confirmed his build no longer failed and
the current svn version I've increased the default value of how often the same
name of a directory is acceptable from one to five, see
http://svn.eu.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/DirectoryScanner.java?r1=697073&r2=697692

Most likely you now hit the out-of-memory exception because Ant doesn't break
out of the traversal early enough.  Could you play with the value of
DirectoryScanner#MAX_LEVELS_OF_SYMLINKS to see whether a value hopefully bigger
than one works for you?

Tuning this really is something we need to do before we release the code.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Reply via email to