15 Nov 2005
OpenGrok

We are releasing
OpenGrok, which 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 and CVS.
OpenGrok is the tool that powers the
OpenSolaris
Source Browser. It is now open sourced and available for download and use.
Features include:
- It can search program symbols, definitions, full text, history log comments (like SCCS, CVS, RCS log), file path; and the ability to AND or OR or NOT any of the search clauses. It has a simple query syntax familiar to users of most web search engines.
- It can show hyper-texted and color coded source listing, with symbols cross-referenced to their definitions
- For the above searches and cross-references, it can understand various program formats, like C/C++,Java, Shell Scripts like ksh, bash, Perl, Makefiles, XML/HTML/SGML files, ELF files, Java class files, Java Jar files, archive files like TAR, GZip, BZip2, Zip files, man page formats like troff and more. You can easily write a plugin to analyze your own program format.
- It can understand version control systems like SCCS, RCS and CVS and provides online user interface
to see the history log (either at file or directory level), differences between any two revisions.
- Look and feel is customizable using CSS
It aims to be an universal source code search engine,
with online browsing for any version control system, which is both
usable and
fast.
More about the features and usage is in my entry describing the
OpenSolaris source browser,
John Stearns' article in
developer.sun.net and in
OpenGrok website (source + downloads).
Link |
Great!
However... I think I found a bug :-)
(Is there a better place to report this? I couldn't find any contact information...)
Posted by Kate on November 16, 2005 at 10:00 AM PST #
Posted by Chandan on November 16, 2005 at 10:12 AM PST #
% java -jar opengrok.jar -c ..\ctags554\ctags -s ..\mustang\j2se ..\mustang_data
Processing j2se
Optimizing the index ... done
Generating spelling suggestion index ... done
Now there's plently of java files in there (and native too) but I get nothing when i try to list the index, or search.
Posted by Sam M. on November 20, 2005 at 12:39 AM PST #
Posted by Sam M. on November 20, 2005 at 03:46 AM PST #
You have forward slash in your path (windows?) I had never tested it on windows.
Posted by Chandan on November 20, 2005 at 09:10 AM PST #
Posted by Tom on November 26, 2005 at 07:04 AM PST #
Posted by Chandan on November 29, 2005 at 02:25 PM PST #
Posted by Fabian R. on November 30, 2005 at 04:21 AM PST #
Posted by Fabian R. on November 30, 2005 at 06:50 AM PST #
The webapp context was hard coded to /source, though I have eliminated most of those usages, a few places still remain and might require a new option to opengrok.jar application.
Posted by Chandan on November 30, 2005 at 07:31 AM PST #
Posted by Fabian R. on November 30, 2005 at 08:28 AM PST #
Posted by Chandan on November 30, 2005 at 08:49 AM PST #
Posted by Graeme Foster on December 09, 2005 at 04:11 AM PST #
Posted by nandak on April 08, 2007 at 11:09 PM PDT #
Posted by Chandan on April 09, 2007 at 01:25 PM PDT #
I'm using OpenGrok to index C++ code. I notice that if I search for a definition, OpenGrok seems to be simply listing all lines that contain the identifier . Clearly, this includes the definition but also a lot of other lines. Is there a way to just have the definition listed in the results?
Posted by pksh on March 31, 2008 at 10:56 AM PDT #