Installing OpenGrok on Windows
Steps for installing OpenGrok.
- Download the OpenGrok binary from OpenGrok Binary.
- Unzip the tar to a location say "G:\OpenGrok"
- Download Ctags from Ctags Windows Binary.
- Extract Ctags to a location say "G:\Ctags"
- Download and install Tomcat.
- OpenGrok needs the following to run
- A configuration.xml that is generated using the command in step 8.
- Location to the source being indexed. (SRC_ROOT)
- Location to the "Ctag" generated grokData, again refer to step 8. (DATA_ROOT)
- Extract the "war" file in the "lib" folder in the extracted OpenGrok location. In this case G:\opengrok-0.11.1\lib.
- Edit the WEB-INF\web.xml file to include the information discussed above (step 6)
- Copy the the extracted source.war with the modified web.xml to the tomcat webapps folder.
- Index the source and generate the configuration.xml file using the below command (G:\opengrok-0.11.1\lib has the jar file)
- Launch Tomcat after the indexing in done. Open http://localhost:8080/source and wola you have a wicked fast source browser.
- Reindex if you need to add new projects/pick new source etc.
<context-param>
<param-name>CONFIGURATION</param-name>
<param-value>G:\opengrok-0.11.1\configuration.xml</param-value>
<description>Full path to the configuration file where OpenGrok can read it's configuration</description>
</context-param>
-------Added the below------
<context-param>
<param-name>SRC_ROOT</param-name>
<param-value>G:\CodeSource</param-value>
</context-param>
<context-param>
<param-name>DATA_ROOT</param-name>
<param-value>G:\opengrok-0.11.1\grokdata</param-value>
</context-param>
java -jar opengrok.jar -W G:\opengrok-0.11.1\configuration.xml -c G:\ctags58\ctags.exe -P -S -v -s G:\CodeSource -d G:\opengrok-0.11.1\grokdata