On 8. juni 2011, at 16.51, Jens Elkner wrote:

> On Tue, Jun 07, 2011 at 10:46:39PM -0700, Sadanand Limaye wrote:
>> I have tried with -N option. But  in my case, source code where
>> there are around 500+ directories structure and lots of then
>> have sym links so i have to fire separate command with such
>> -N option because each time the path next to -N is different.
> 
> Haven't looked into the related code yet, but in general symlinks
> should be silently accepted/indexed (even when pointing outside
> the project/repo dir), if the user wants that. Options like
> FollowSymlinks and FollowSymlinksIfOwnerMatch [otherwise IgnoreSymlinks]
> comes into mind ...
> However, wrt. this feature, IMHO waiting for JDK7 (java.nio.file.*)
> would be beneficial.

Just to add some context on _WHY_ that code was added.. We had runtime problems 
for repositories that contained symbolic links to /dev etc... I would say that 
normally you don't have any symbolic links in your source repository, so 
suddenly walking into "random" places (imagine /net/machine/export/foo) should 
just be ignored... 

I'm really looking forward for the new nio.file classes as we're currently 
stat'ing the files _WAY_ too much during indexing due to the limited 
capabilities of the java.io.File class..

Trond

_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss

Reply via email to