oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.34k stars 745 forks source link

per project ignored patterns #3158

Open brightchuh opened 4 years ago

brightchuh commented 4 years ago

Describe the bug Dear Opengrok Developers,

There're some dirs, for example the "out" dir in AOSP project, in my project that i do not want opengrok to index. Is there any method to exclude these dirs?

Thanks a lot!

vladak commented 4 years ago

The indexer has the -i/--ignore option for that - when you run the indexer with -h it will explain.

brightchuh commented 4 years ago

The indexer has the -i/--ignore option for that - when you run the indexer with -h it will explain.

Well, I've got several projects in opengrok src dir. Each project may have different exclude-dirs. If just passing some exclude-dir patterns to indexer, it may work for all projects. Is there any per-project exclude-dir configuration in the ro-conf xml?

vladak commented 4 years ago

No, there is no per project tunable for ignored files/dirs.

brightchuh commented 4 years ago

Is there a plan to add this feature?

vladak commented 4 years ago

There is, as long as the issue is open. I have not done the scoping yet. Certainly PRs are welcome.

idodeclare commented 4 years ago

The is an open PR #3137 to apply the same (existing) logic to indexing and history. I would like to see that merged before any project-specific changes are done.

Also FYI @sagarkhushalani had a variant request (#3103) related to project-specific ignored items.