Opengrok Installation On Windows

Active4 years, 6 months ago

Opengrok Git History

I am working on Searching through SVN repository.I came through this tool OpenGrok for indexing and searching through the repository. But i problem i am getting is i am not able to get it configure. How to install OpenGrok; Internals; Story of OpenGrok; Communication: Discussions (mailing lists, etc.) Bugs or feature. [opengrok] Installation of OpenGrok on Windows sreevib [opengrok] Installation of OpenGrok on Windows Moisei Rabinovich [opengrok] Installation of OpenGrok on Windows.

From searching around the net (and SO) for how to full text search an SVN repo, I discovered OpenGrok. I'm at a bit of a loss as to how to get this thing set up though.

[opengrok] Installation of OpenGrok on Windows sreevib. [opengrok] Installation of OpenGrok on Windows Moisei Rabinovich. [opengrok] Installation of OpenGrok on Windows sreevib. [opengrok] Installation of OpenGrok on Windows Moisei Rabinovich.

Jenkins installation on windows

Can anyone provide any pointers on how to get this set up to host on a Windows 2003 server?

OpenGrok can be installed and used under different use cases. Advanced usage depends on your knowledge of running java applications and command line options. Note, that you need the create the index no matter what is your use case. I have configured OpenGrok in Windows environment with. Localhost URL should be accessible through Windows.

Also, I understand it is possible to trigger OpenGrok to re-index upon checking in files. Is there a way to make this happen no matter who checks in the files and how does one do this?

Windowsjoshcomleyjoshcomley
17.9k18 gold badges93 silver badges132 bronze badges

2 Answers

For the installation, just following the instructions in the README.txt of the distribution of opengrok should suffice. It did for me. Just make sure you have all the prerequisites correctly installed. (section Requirements in the README.txt).

from this file:

Source base must be available locally for OpenGrok to work efficiently. Nochanges are required to your source tree. If the code is under source controlmanagement (SCM) OpenGrok requires the checked out source tree under SRC_ROOT.

PW.PW.

To reindex you project runjava -jar opengrok.jar -R D:ProgramFilesGrokopengrok-0.12.1configuration.xml

Igor ShatalkinIgor Shatalkin

Not the answer you're looking for? Browse other questions tagged installationwindows-server-2003opengrok or ask your own question.

I’ve needed to setup a local OpenGrok server on Windows to do some testing. It’s not that straightforward as one might expect but not that hard either. My setup is not secure nor tested whatsoever so don’t rely on it, but it can be used if you need to quickly setup some OpenGrok server on your Windows workstation. So here’s what you have to do:

Installation
  1. Download OpenGrok binary. Just go to OpenGrok Home and download 0.10 binary
  2. Download ctags. Just go to ctags, download windows zip file and extract it somewhere.
  3. Edit web.xml. You need to extract lib/source.war somewhere and modify WEB-INF/web.xml slightly. I’ve modified CONFIGURATION param to point to my generated configuration.xml file(more about it later) and added SRC_ROOT and DATA_ROOT to point to folder with sources to index and folder that OpenGrok should keep it’s data in (I’m not sure if these two are needed if you pass in configuration.xml)
  4. Deploy web app on Tomcat 6 (didn’t test it on any other servlet container, but docs state that it should also work on Glassfish and Tomcat later than 6). I’ve just copied source folder to PATH_TO_TOMCAT/webapps but you can zip them to war and deploy as single file.
  5. Index source/generate configuration.xml. OpenGrok has nice config generation tool. Just go to PATH_TO_OPENGROK/lib and launch:

    You can omit -P if you don’t need projects (first level directories are considered projects with this option, not as source folders). This will index your source files and generate configuration.xml.

Now start Tomcat (PATH_TO_TOMCATbinstartup.bat) and go to http://localhost:8080/source and if I didn’t forget something 😉 you should see OpenGrok search page with your projects. Try to search, should work fine.

P.S. If you change source you have to re-index and overwrite configuration.xml if you added/removed projects.

Jenkins Installation On Windows

Advertisements