ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: DirectoryScanner and Symlinks
Date Wed, 10 Sep 2008 16:02:04 GMT
On Wed, 10 Sep 2008, Dominique Devienne <> wrote:

> On Wed, Sep 10, 2008 at 3:20 AM, Stefan Bodewig <> wrote:
> >> Similarly, maybe an internal flag in DS should be gettable to
> >> possibly have client code remove duplicate entries if it wants to???
> >
> > Not sure what you mean here.
> Have an new accessor on DirectoryScanner to find out how many symlink
> hops it made, and whether is hit the limit, i.e. ignored some links.

The whether it hit the limit part is easy, but the way it is
implemented DirectoryScanner won't (in general) even know it followed
any symlinks before the limit is hit - this is all to avoid the cost
of File.getCanonicalPath() unless we really need to call it.


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

View raw message