在安裝WebClient for SVN之前,確保SVN+Apache已經裝好,並且已啓動
1、下載WebClient for SVN,下載地址爲:http://www.polarion.org/index.php?page=download&project=svnwebclient
2、安裝TomCat,此處不介紹
3、下載EnScript,地址爲:http://gnuwin32.sourceforge.net/packages/enscript.htm,下載後解壓縮到D:/enscript-1.6.3-9-bin
4、修改配置如下:
設置EnscriptPath,在Tomcat的webapps/svnwebclient/WEB-INF/web.xml"中修改如下設置
<context-param>
<param-name>EnscriptPath</param-name>
<param-value>D:/enscript-1.6.3-9-bin/bin/enscript.exe</param-value>
</context-param>
在同一文件中更改RepositoryUrl,如下:
<context-param>
<param-name>RepositoryUrl</param-name>
<param-value>http://localhost/svn/</param-value>
</context-param>
在同一文件中設置user、password(必須是svn裏邊配置的user、password)如下:
<context-param>
<param-name>Username</param-name>
<param-value>tom</param-value>
</context-param>
<context-param>
<param-name>Password</param-name>
<param-value>tom</param-value>
</context-param>
5、在Tomcat的server.xml,增加如下修改
<Connector port="8080" URIEncoding="UTF-8" ... />(只需要增加URIEncoding="UTF-8") 以支持中文路徑尋址。
自此,配置已經完成,啓動Tomcat,通過http://localhost:8080/svnwebclient訪問,輸入user、password登錄就可以進行操作了