Difference between revisions of "OpenGrok"

From CDOT Wiki
Jump to: navigation, search
(Steps)
(Steps)
Line 34: Line 34:
 
* Setup a Mozilla code directory (mkdir /var/mozilla)
 
* Setup a Mozilla code directory (mkdir /var/mozilla)
 
* Checkout code via CVS using make from [http://ftp.gnu.org/pub/gnu/make/make-3.80.tar.gz GNU] [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_Via_CVS Guide on CVS Checkout]
 
* Checkout code via CVS using make from [http://ftp.gnu.org/pub/gnu/make/make-3.80.tar.gz GNU] [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_Via_CVS Guide on CVS Checkout]
 +
* Follow guide at the [http://www.opensolaris.org/os/project/opengrok/manual OpenSolaris Project Guide]
  
 
==== Important Info ====
 
==== Important Info ====
 
* /var/lib/tomcat5 is the default $CATALINA_HOME
 
* /var/lib/tomcat5 is the default $CATALINA_HOME
 
* /etc/default/tomcat5 has some configuration files
 
* /etc/default/tomcat5 has some configuration files

Revision as of 20:39, 23 October 2006

Introduction

OpenGrok is the source browser in use my the OpenSolaris community. It uses Java Servlets running on Java5

Features and Benefits

File History

OpenGrok maintains code version history. I am currently unsure of whether it looks at the CVS versioning information or whether it compares files between indexes. There is also options for many diffs and comparing different, non-concurrent versions.Example

Extendable

If there are files which cannot be analysed by the included analysers, OpenGrok allows the user to develop their own analysers, I am unsure of whether or not there is a JavaScript analyser allready, maybe even an XPCOM/XUL analyser could be written, but I don't know the first thing about XPCOM/XUL so this maybe allready implemented in another language.

In File Linking

The indexer hyperlinks all symbols to the file and line number of their declaration. If the symbol is in multiple files it shows a list of all files which have it.

Integrates Well

The header and footer are completely customizable. OpenGrok could be integrated with the current MDC potentially. The header and footer are implemented through a variable which holds the copmlete html of the header and footer.

Example Implementation

OpenSolaris

Installation Procedure

Notes

I will be listing all commands and steps I use to setup the plain OpenGrok so that it can be easily replicated

Steps

  • Install Ubuntu Linux as a server from the Ubuntu DVD
  • Install the following packages
 - ctags -> exuberant-ctags
 - sun-java5-jdk
 - tomcat5 tomcat5-admin tomcat5-webapps
   - Installs GNU Java which must be removed
 -make (using 3.81, may need 3.80)
 -CVS
  • Run "sudo update-alternatives --config java" and "apt-get remove --purge java-gcj-compat"
  • Change the tomcat5 config (/etc/default/tomcat5) to point to the new default Java runtime (/usr/lib/jvm/java-1.5.0-sun/jre/)
  • Setup a Mozilla code directory (mkdir /var/mozilla)
  • Checkout code via CVS using make from GNU Guide on CVS Checkout
  • Follow guide at the OpenSolaris Project Guide

Important Info

  • /var/lib/tomcat5 is the default $CATALINA_HOME
  • /etc/default/tomcat5 has some configuration files