https://defect.opensolaris.org/bz/show_bug.cgi?id=18601
Summary: IgnoredNames.java should have two lists -- one for
files, one for directories
Classification: Development
Product: opengrok
Version: unspecified
Platform: ANY/Generic
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: indexer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
In the course of my figuring out why opengrok 0.10 wouldn't index all my files,
I found two different problems that caused the issue.
The simplest problem was that opengrok wasn't indexing anything in our
directories called "tags". (Combined with the other problem, it wasn't
immediately apparent that anything in a directory called "tags" was skipped,
but eventually it became clear.)
(The other problem will be the subject of another defect.)
In any event, the ctags program will create a file called "tags", so it makes
sense to ignore these files, but there's no reason that I'm aware of to ignore
a directory called tags.
Therefore, I suggest that IgnoredNames.java have two lists rather than one --
one list is a list of files to be ignored, and the other list is a list of
directories to be ignored. (There may also need to be some other code changes
-- when the code actually checks to see if a file name should be ignored, it
might have to tell the method that this is a file or it's a directory -- but
that should be pretty obvious.)
For my own use, I'm simply recompiling IgnoredNames.java to not skip anything
named "tags", but a proper fix is likely what I suggested above.
Also, some documentation on this list might be appropriate, or perhaps some way
to customize the default list without recompiling.
--
Configure bugmail: https://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev