Red Hat Bugzilla – Bug 1024735
Making MAIN_CLASS of opengrok replacable
Last modified: 2015-12-02 05:10:10 EST
Created attachment 817392 [details]
A patch introduces OPENGROK_MAIN_CLASS environment variable
Description of problem:
This is not a bug report. This is a request to merge a patch.
opengrok.jar provides a class named org.opensolaris.opengrok.search.Search for searching from commandline. However, opengrok command shipped as part
of fedora doesn't provide an interface for searching.
Because org.opensolaris.opengrok.index.Indexer class is hardcoded in the command,
the command can be used for indexing only through the command is useful for harness.
A patch attached to this post introduces OPENGROK_MAIN_CLASS environment variable. With the variable you can use opengrok command for searching like:
$ export OPENGROK_MAIN_CLASS=org.opensolaris.opengrok.search.Search
$ opengrok -R CONFFILE -f PATTERN
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.
More information and reason for this action is here:
This package was retired: