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 15:59:42 GMT
Code is in, documentation is not.  Please help me find good names and
default values 8-)

On Mon, 08 Sep 2008, Stefan Bodewig <bodewig@apache.org> wrote:

> OK, combining suggestions by Gilles and Dominique here is what we
> could do:
> 
> * add a new sttribute for maxSymlinkRecursionDepth (better name
>   appreciated) and make it default to 5 (up for discussion as well).
>   This limits how many times the same symlink can be followed.

The attribute is maxLevelsOfSymlinks inspired by the error message you
get on Linux when you hit the OS limit in an infinite loop.

It's default value is 1 which means we wouldn't traverse a symlink
more than once.

> * If the same simple name appears for the MAXth time,

(MAX + 1)th time

> check whether that directory is a symlink.  If it is, check its
> canonical name and the canonical names of all other occurances of
> directories with the same name.

> If they all point to the same location

If more than MAX of them point to the same location

> , ignore the directory.  If they point to different locations
> recurse but revisit things if the same name is encountered for the
> (MAX + 1)th time

(MAX + 2)th time

> and so on.

Stefan

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


Mime
View raw message