Skip to content

Commit

Permalink
Initial import (OpenGrok 0.3.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trond Norbye committed Nov 15, 2006
0 parents commit c23e82b
Show file tree
Hide file tree
Showing 195 changed files with 30,407 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .hgignore
@@ -0,0 +1,8 @@
syntax: glob
*~
*.class
build
dist
.hgcache
opengrok.jar
source.war
50 changes: 50 additions & 0 deletions CHANGES.txt
@@ -0,0 +1,50 @@
April 2006 update 0.3.1
-------------------------------------------------
Bug Fixes:
Fix the webapp for custom context option
Many changes contributed by Knut Pape
More easy to understand usage message
tar.bz2 was not getting processed properly
PDF files were getting cross-referenced by mistake
Troff - missing space in xref

February 2006 update 0.3
-------------------------------------------------
New Features:
Support for Subversion.
A cscope like GUI for search.
A GUI wizard for creating or updating search index.
New option that supports webapps with different context URLs.
Better display of matched context
A new CSS style sheet with offwhite theme.


December 2005 update: 0.2.1
-------------------------------------------------
New Features:
Now runs on Microsoft Windows
a new CSS theme (polished)
Interim support for PHP and OpenSolaris Assembler code.
Single distributable file to keep things simple

Bug fixes:
Fixes a XSS security issue (reported by Wez Furlong)
Fixes bug where some CVS revisions could not be retrived
Fixes bug in handling CVS long histories (reported by Wez Furlong)
Handles extra characters in CVS symbol names (reported by Wez Furlong)
More robust EFTAR file handling (reported by Andy Tucker)
Throws more helpful error messages
Tomcat 4.x compatibility fixes
Minor fixes to hypertexting code that handles strings.
Fixed bug that ignored symlinked SRC_ROOT (reported by Michael Allen)

Compatibility Note:
The DATA_ROOT files generated by 0.2 are compatible
with this release. Changing the source.war parameters
and redeploying should work.
However to get full advantage, it is advisable to
generate the data from scratch (i.e remove the old
DATA_ROOT and run the run.sh again).

Initial public release, November 2005 Version 0.2
-------------------------------------------------
385 changes: 385 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

112 changes: 112 additions & 0 deletions README.txt
@@ -0,0 +1,112 @@
OpenGrok - a wicked fast source browser
---------------------------------------

OpenGrok is a fast and usable source code search and cross reference
engine, written in Java. It helps you search, cross-reference and navigate
your source tree. It can understand various program file formats and
version control histories like SCCS, RCS, CVS and Subversion

OpenGrok is the tool used for the OpenSolaris Source Browser.

Requirements
------------
* Latest Java http://java.sun.com/
* A servlet container like Tomact (5.x or later)
http://tomcat.apache.org/
* Exuberant Ctags http://ctags.sourceforge.net/
* Subversion 1.3.0 or later if SVN support is needed
http://subversion.tigris.org/


Usage
-----
SRC_ROOT refers to the directory containing your source tree.
OpenGrok analyzes the source tree and builds a search index along with
cross-referenced hypertext versions of the source files. These generated
data files will be stored in DATA_ROOT directory.

OpenGrok setup Step.0 - Setting up the Sources.
----------------------------------------------
Source base must be available locally for OpenGrok to work efficiently. No
changes are required to your source tree. If the code is under CVS or
Subversion OpenGrok requires the checked out source tree under SRC_ROOT.
A local CVSROOT or Subversion file protocol access must be available.
File history will not be fetched from a remote CVS/SVN server.
Note that OpenGrok ignores symbolic links.

---------------------------------------------------
Using command line interface.
---------------------------------------------------

Step.1 - Populate DATA_ROOT Directory
=====================================
Option 1. run.sh: There is a sample shell script run.sh that is suitable
for using in a cronjob to run regularly. Modify the variables in the script
to point appropriate directories.

Option 2. opengrok.jar: You can also directly use the Java application. If
the sources are all located in a directory SRC_ROOT and the data and
hypertext files generated by OpenGrok are to be stored in DATA_ROOT, run

$ java -jar opengrok.jar -s SRC_ROOT DATA_ROOT

See opengrok.jar manual below for more details.

Step.2 - Configure and Deploy source.war Webapp
===============================================
To configure the webapp source.war, look into the parameters defined in
web.xml of source.war file and change them (see note1) appropriately.

* HEADER: is the fragment of HTML that will be used to display title or
logo of your project
* SRC_ROOT: the absolute path name of the root directory of your source tree
* DATA_ROOT: absolute path of the directory where OpenGrok data
files are stored


Optional Step.3 - Path Descriptions
-----------------------------------
OpenGrok uses path descriptions in various places (For eg. while showing
directory listings or search results) Example descriptions are in paths.tsv
file. You can list descriptions for directories one per line tab separated
format path tab description. Refer to example 4 below.

Note 1 - Changing webapp parameters: web.xml is the deployment descriptorblogsblo
for the web application. It is in a Jar file named source.war, you can
either:

* Option 1: Unzip the file to TOMCAT/webapps/source/ directory and
change the source/WEB-INF/web.xml and other static html files like
index.html to customize to your project.

* Option 2: Extract the web.xml file from source.war file

$ unzip source.war WEB-INF/web.xml

edit web.xml and re-package the jar file.

$ zip -u source.war WEB-INF/web.xml

Then copy the war files to <i>TOMCAT</i>/webapps directory.

---------------------------------------------------
Using Standalone Swing GUI
---------------------------------------------------
opengrok.jar when invoked without any arguments, opens up the GUI search window.
The interface is similar to cscope.

To create an index, first select the browse button for "Search" drop down list.
Choose a directory to store the index (DATA_ROOT), and select the source tree
(SRC_ROOT). You may have to also select path to ctags in the Advanced Options,
if exuberant ctags can not be found in the PATH.

Clicking "Update" will create or update the search index.

The index can be searched using the cscope like GUI, which lets you customize
your favorite editor to open the matching files.

AUTHORS
-------
Chandan B.N, Sun Microsystems. https://blogs.sun.com/chandan
Trond Norbye, norbye.org
Knut Pape, eBriefkasten.de

0 comments on commit c23e82b

Please sign in to comment.