ant-dev mailing list archives

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

> On Wed, Sep 10, 2008 at 3:20 AM, Stefan Bodewig <bodewig@apache.org> 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.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message