ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick (Gus) Heck" <>
Subject [PATCH] DirectoryScanner - adds method setFollowLinks()
Date Sun, 28 Apr 2002 19:44:58 GMT
This patch allows developers using DirectoryScanner to specify whether or
not a given instance should report files for which File.getCanoniacalPath()
and File.getAbsolutePath() are not equal (such as symbolic links in linux).
The default value of true, retains the existing behavior, while

DirectoryScanner ds = new DirectoryScanner();

changes the behavior to igore symlinks (and their analogs on other OS's).

The patch also includes a test case for this behavior change.

I have tried to follow the guidelines in ant_task_guidelines.html, but this
is the first patch I have submitted, so be alert for things I may have
missed. I'll be glad to clean up anything that isn't quite right about my
code or my submission, but it is working on my machine :).

This patch is a precursor to the symlink task I am working on which will use
this functionality.


View raw message