[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-opengrok-discuss
Subject:    Re: [opengrok] How can I make OpenGrok skip symlinks to directories?
From:       Jacobo de Vera <devel () jacobodevera ! com>
Date:       2012-10-03 16:18:08
Message-ID: CAOqX-RV-sR1Q=WsrFiyT-zmL_MQTWKmDk5tak9boV-a31a1HQQ () mail ! gmail ! com
[Download RAW message or body]

This is great, thanks, this worked for me, since I have a short list
of symlinks that I don't want to index.

regards,

On Wed, Oct 3, 2012 at 3:04 PM, Haehn, Steven <Steven.Haehn@xerox.com> wrote:
> As opposed to modifying your repository to avoid the symlinks, have you tried \
> setting up a list of directories to ignore? (this of course will only work if the \
> links are using names that would be different from original paths) It also requires \
> that you know which directories are links, but you know that already considering \
> you are making repository modifications. For instance, the following paths would be \
> ignored:     -i nova/lib/extra -i do/not/index/this 
> 
> -----Original Message-----
> From: opengrok-discuss-bounces@opensolaris.org \
>                 [mailto:opengrok-discuss-bounces@opensolaris.org] On Behalf Of \
>                 Jacobo de Vera
> Sent: Tuesday, October 02, 2012 5:50 PM
> To: opengrok-discuss@opensolaris.org
> Subject: Re: [opengrok] How can I make OpenGrok skip symlinks to directories?
> 
> On Tue, Oct 2, 2012 at 5:41 PM, Petr Sobotka <sobotkap@gmail.com> wrote:
> > Hi Jacobo,
> > 
> > I think that there is argument "-z " to set depth how many symlinks
> > should be followed.
> > Try to set it to 0. (I believe that default value is 3)
> > 
> > --
> > Cheers,
> > Petr Sobotka aka Pietro
> > 
> > 2012/10/2 Jacobo de Vera <devel@jacobodevera.com>
> > > 
> > > Hi All,
> > > 
> > > I'm using OpenGrok to index just one big project, and we have a
> > > couple of symlinks to access deeply nested directories with ease. I
> > > was under the impression the OpenGrok would, by itself, and unless
> > > told otherwise, skip all symlinks. However, I am finding this is not
> > > the case. When I am creating the indexes, symlinks to directories are
> > > explored and all files inside are added, which results in duplicate
> > > results with different paths when doing any searches. Is there any
> > > setting that I can use to prevent this? Right now I'm simply deleting
> > > the symlinks before indexing, but I'm hoping to find some cleaner
> > > solution that doesn't involve modifying the repository. Is there one?
> > > 
> > > Thanks and regards,
> > > 
> > > --
> > > Jacobo de Vera
> > > _______________________________________________
> > > opengrok-discuss mailing list
> > > opengrok-discuss@opensolaris.org
> > > http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss
> > 
> > 
> 
> Hi, The -z option doesn't seem to be it:
> -z number
> depth of scanning for repositories in directory structure relative to source root
> 
> I still tried it, with no success, though. I could not find anything in the usage \
> that refers to symlink other than the option to allow specific symlinks, which made \
> me think that by default they would not be followed, but it seems they are \
> followed. 
> Any other suggestions?
> 
> Thanks and regards,
> 
> --
> Jacobo de Vera
> _______________________________________________
> opengrok-discuss mailing list
> opengrok-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic