On Thu 15 Mar 2007 at 08:37PM, prasad wrote:
> We have our source code in Telelogic's Synergy (code managment tool) and it
> uses symbolic links and currently OpenGrok ignores these. Is there a plan to
> support symbolic links?
>
> -- prasad
[I replied a couple of days ago but I think the spam filters
ate my post :( Resending...]
I've certainly been doing some thinking about symlinks but I'm
not really a core contributor so I don't know if there are "plans".
Since I don't have access to this other tool, can you be a little more
precise about the exact behavior you would like to see? And maybe
give a real world example?
One difficulty with symlinks is that they may point you off into
weird places. Imagine if your source base accidentally had a
symlink to /home-- if opengrok followed that, we'd have a problem.
You could also have symlinks which create loops, and so that means
doing some looping detection. Some of that may be there already--
I'm not sure.
So:
- Follow symlinks if they point "outside" the source base?
- Follow symlinks if they point "inside" the source base?
(and then reindex the content when you find it again later?
or not?)
- Detect loops?
My specific interest with symlinks is that I have a big index I want
to build out of multiple source bases, and so I want to have some top
level symlinks which point off to the various pieces. So I'd like to
teach opengrok a rule like "after you follow <N> symlinks, stop
following them."
-dp
--
Daniel Price - Solaris Kernel Engineering - dp at eng.sun.com - blogs.sun.com/dp