I was able to install and use Opengrok on Windows. I am attaching a Readme 
which contains the steps that I followed to install Opengrok.

Thanks for all the support
 
 
This message posted from opensolaris.org
-------------- next part --------------
Installation:
============
0. Install the following        
        JDK 1.5 or higher; 
        Exuberant Ctags for analysis 
        A servlet container like GlassFish or Tomcat (5.x or later) 


1. Download opengrok-0.6.1.tar[1] from 
"http://opensolaris.org/os/project/opengrok/"; and unzip the contents to a 
folder say "Temp". Following folders and files are created under it 
        default
        META-INF
        offwhite
        polished
        WEB-INF
        diff.jsp
        enoent.jsp
        error.jsp
        foot.jspf
        help.jsp
        history.jsp
        httpheader.jspf
        index.jsp
        index_body.html
        list.jsp
        mast.jsp
        menu.jspf
        more.jsp
        pageheader.jspf
        projects.jspf
        rss.jsp
        rss.xsl.xml
        search.jsp


2. Create a new folder structure
        <OG_ROOT>
          |_Opengrok
                |_bin
                |_data
                |_source
   Note: <OG_ROOT> is the directory under which the Opengrok folder is created.
   IMPORTANT: <OG_ROOT> file path should not have spaces like "c:\Program 
Files\Opengrok"

3. Copy all the .jar files (except opengrok.jar) from the Temp\WEB_INF\lib\ 
(see Step1) to <OG_Root>\Opengrok\bin\lib
   Copy all the opengrok.jar file from the Temp\WEB_INF\lib\ (see Step1) to 
<OG_Root>\Opengrok\bin
   Copy the ctags.exe to <OG_Root>\Opengrok\bin
   Now the Opengrok folder looks like
        <OG_ROOT>
          |_Opengrok
                |_bin
                   |_opengrok.jar
                   |_ctags.exe
                   |_lib
                        |_ant.jar
                        |_bcel-5.1.jar
                        |_jakarta-oro-2.0.8.jar
                        |_lucene-core-2.2.0.jar
                        |_lucene-spellchecker-2.2.0.jar
                        |_org.apache.commons.jrcs.diff.jar
                        |_org.apache.commons.jrcs.rcs.jar
                        |_swing-layout-0.9.jar

        

Above steps are sufficient in case you wish to use the Standalone Swing 
Application / Command line installation. The following steps are needed only if 
you intend use the Web Application (using Tomcat)

4. Create a folder source under the ..\Tomcat x.x\webapps
        <TC_ROOT>
          |_Tomcat x.x
                |_webapps
                        |_source
   Note: <TC_ROOT> is the directory under which the Opengrok folder is created

5. Copy the folders and files from the directory Temp (see Step1) to the folder 
"source"

6. Edit the <TC_ROOT>\Tomcat x.x\webapps\source\WEB-INF\web.xml as follows
        Replace the "/opengrok/configuration.xml" to 
"<OG_ROOT>\Opengrok\data\configuration.xml"


Usage: 
=====

I. Create the index
-------------------

1. Copy the source directory under the folder <OG_ROOT>\Opengrok\source

2. Run the following command from OpenGrok\bin to create the index
        java -Xmx1524m -jar opengrok.jar -W "..\data\configuration.xml" -P -S 
-v -s "<OG_ROOT>\OpenGrok\source" -d "<OG_ROOT>\OpenGrok\data"                 
Note: <OG_ROOT> is the directory under which the Opengrok folder is created. 
See Step2.

II. Open the GUI
----------------

1. Run the command "java -jar opengrok.jar" 


III. Use the Web Application
----------------------------
1. In the Internet Explorer enter http://localhost:8080/source. OpenGrok 
application is opened

Reply via email to