Posted on 2006-03-30 15:11
Justfly Shi 閱讀(3446)
評論(0) 編輯 收藏 所屬分類:
tips
首先,為了能運行ant相關的svn任務,我們到subclipse的子項目svnant里去下載一個svnant
地址是:http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=1731&expandFolder=1731&folderID=0
這個時候如果linux上已經裝有了svn命令行工具的話,那么就可以直接按照把svnant里面的相關的jar放到ant的lib目錄下使用就可以了。
不過由于一般新安裝的linux系統或者是其他沒有svn客戶端的系統都沒有svn命令行工具,那么可以使用一個全部用java實現的svn客戶端實現來作替代。
具體的替代辦法在下面這個網址里面提供了
http://tmate.org/svn/kb/user-guide-svnant.html
其內容如下:
Making SvnAnt use JavaSVN
Step-by-step instructions:
- Remove existing
javahl.jar
and svnClientAdapter.jar
(libraries distirbuted with the svnant) from your Ant classpath (ANT_HOME/lib/ directory).
- Download latest version of JavaSVN library. You will need javasvn.jar and javasvn-javahl.jar files from the library distribution.
- Get patched version of svnClientAdapter.jar (version 0.9.32).
- Put
javasvn.jar
, javasvn-javahl.jar
and svnClientAdapter-0.9.32.jar
files on your Ant classpath (ANT_HOME/lib/ directory).
After performing the steps above svnant will use JavaSVN instead of JavaHL bindings.
If you have any questions regarding JavaSVN, would like to report a bug or contribute a patch, please write to support@tmatesoft.com