title: How can you connect OpenGrok to a SVN repository?
body: <p>I was able to install and use opengrok on WinXP using this blog entry</p>
  
  <p><a href="http://theflashesofinsight.wordpress.com/2009/05/11/install-opengrok-on-windows/" rel="nofollow noreferrer">http://theflashesofinsight.wordpress.com/2009/05/11/install-opengrok-on-windows/</a></p>
  
  <p>I now want to index a subversion repository. I checked out a repository to the source folder and can search the files. However the links for history and annotate are not active.</p>
  
  <p>I have svn installed and indexing the directory give no warnings or errors. (There was an error when I didnt have the SVN client installed)</p>
  
  <p>Is there some configuration needed? I saw this link <a href="http://blogs.oracle.com/trond/entry/using_subversion_with_opengrok" rel="nofollow noreferrer">http://blogs.oracle.com/trond/entry/using_subversion_with_opengrok</a> but it did not give me any clue.</p>
  
  <p>I used</p>
  
  <pre><code>java -Xmx1024m -jar opengrok.jar -W  "C:\\OpenGrok\\data\\configuration.xml" -r on -P -S -v -s "C:\\OpenGrok\\source" -d  "C:\\OpenGrok\\data"
  </code></pre>
  
  <p>and after it</p>
  
  <pre><code>java -Xmx1024m -jar opengrok.jar -R "C:\\OpenGrok\\data\\configuration.xml" -H
  </code></pre>
  
  <p>This is the resulting config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
  &lt;java version="1.6.0_20" class="java.beans.XMLDecoder"&gt; 
   &lt;object class="org.opensolaris.opengrok.configuration.Configuration"&gt; 
    &lt;void property="dataRoot"&gt; 
     &lt;string&gt;C:\OpenGrok\data&lt;/string&gt; 
    &lt;/void&gt; 
    &lt;void property="projects"&gt; 
     &lt;void method="add"&gt; 
      &lt;object class="org.opensolaris.opengrok.configuration.Project"&gt; 
       &lt;void property="description"&gt; 
        &lt;string&gt;Configuration&lt;/string&gt; 
       &lt;/void&gt; 
       &lt;void property="path"&gt; 
        &lt;string&gt;/Configuration&lt;/string&gt; 
       &lt;/void&gt; 
      &lt;/object&gt; 
     &lt;/void&gt; 
     &lt;void method="add"&gt; 
      &lt;object class="org.opensolaris.opengrok.configuration.Project"&gt; 
       &lt;void property="description"&gt; 
        &lt;string&gt;test&lt;/string&gt; 
       &lt;/void&gt; 
       &lt;void property="path"&gt; 
        &lt;string&gt;/test&lt;/string&gt; 
       &lt;/void&gt; 
      &lt;/object&gt; 
     &lt;/void&gt; 
    &lt;/void&gt; 
    &lt;void property="remoteScmSupported"&gt; 
     &lt;boolean&gt;true&lt;/boolean&gt; 
    &lt;/void&gt; 
    &lt;void property="repositories"&gt; 
     &lt;void method="add"&gt; 
      &lt;object class="org.opensolaris.opengrok.history.RepositoryInfo"&gt; 
       &lt;void property="datePattern"&gt; 
        &lt;string&gt;yyyy-MM-dd&amp;apos;T&amp;apos;HH:mm:ss.SSS&amp;apos;Z&amp;apos;&lt;/string&gt; 
       &lt;/void&gt; 
       &lt;void property="directoryName"&gt; 
        &lt;string&gt;C:\OpenGrok\source\Configuration&lt;/string&gt; 
       &lt;/void&gt; 
       &lt;void property="remote"&gt; 
        &lt;boolean&gt;true&lt;/boolean&gt; 
       &lt;/void&gt; 
       &lt;void property="type"&gt; 
        &lt;string&gt;Subversion&lt;/string&gt; 
       &lt;/void&gt; 
       &lt;void property="working"&gt; 
        &lt;boolean&gt;true&lt;/boolean&gt; 
       &lt;/void&gt; 
      &lt;/object&gt; 
     &lt;/void&gt; 
    &lt;/void&gt; 
    &lt;void property="sourceRoot"&gt; 
     &lt;string&gt;C:\OpenGrok\source&lt;/string&gt; 
    &lt;/void&gt; 
    &lt;void property="verbose"&gt; 
     &lt;boolean&gt;true&lt;/boolean&gt; 
    &lt;/void&gt; 
   &lt;/object&gt; 
  &lt;/java&gt; 
  </code></pre>