Bug 1024735 - Making MAIN_CLASS of opengrok replacable
Summary: Making MAIN_CLASS of opengrok replacable
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: opengrok
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-30 10:43 UTC by Masatake YAMATO
Modified: 2015-12-02 10:10 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-12-02 10:10:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
A patch introduces OPENGROK_MAIN_CLASS environment variable (394 bytes, patch)
2013-10-30 10:43 UTC, Masatake YAMATO
no flags Details | Diff

Description Masatake YAMATO 2013-10-30 10:43:52 UTC
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

Comment 1 Jaroslav Reznik 2015-03-03 15:10:07 UTC
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:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 2 Mat Booth 2015-12-02 10:10:10 UTC
This package was retired:

http://pkgs.fedoraproject.org/cgit/opengrok.git/tree/dead.package


Note You need to log in before you can comment on or make changes to this bug.