build.xhtml revision 6d7c6f82e644c205bc679ee5b1fa2929ec949963
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>How to build {OpenGrok</title>
</head>
<body>
<h1>How to build {OpenGrok</h1>
<p>The easiest way to build (or modify) {OpenGrok is by using
{OpenGrok from the command line.
</p>
<h2>Requirements</h2>
<p>You need the following:</p>
<ul>
1.6 or higher</li>
if you don't intend to build using NetBeans</li>
<li>The source code is located in a
repository</li>
<li>The analyzers are generated from lex by using
</ul>
<h2>Check out the source</h2>
<p>The first thing you need to do is to check out the source code. You
might do this from within NetBeans if you have the Mercurial plugin
installed, or you can check out the source with the following
command:
</p>
<h2>Prepare the source for compilation</h2>
the OpenGrok source. (If you are using NetBeans, you could
alternatively add JFlex.jar to Ant's classpath at
Tools->Options->Miscellaneous->Ant. If you are
running Ant from the command line, it should also work if you put
</p>
<h2>Compile the source</h2>
<p>If you use NetBeans you should be able to open OpenGrok as a project
and build it from there. If you want to build from the command line,
execute the following command:</p>
<pre>ant</pre>
<p>If the build is successful, you should now find the
binaries under the <code>dist</code> directory.</p>
</body>
</html>