找不到javahl,svnkit也不是命令行的svn客户端 [英] Cannot find javahl, svnkit nor command line svn client
问题描述
我已经做了很多的svn /蚂蚁调校和但这一次水湿弄清楚什么是错的。
I've done numerous svn / ant set-ups and but this time cann't figure out what's wrong.
使用Linux,
svn 1.6.6
ant 1.8.2
svnant 1.3.1
我复制的svnant的jar文件到 $ ANT_HOME / lib目录
top@secret:~/apps/apache-ant-1.8.2/lib$ ls -l
-rw-r--r-- 1 root root 244831 2011-06-23 07:55 ganymed.jar
-rw-r--r-- 1 root root 948100 2011-06-23 07:55 jna.jar
-rw-r--r-- 1 root root 76383 2011-06-23 07:55 svnant.jar
-rw-r--r-- 1 root root 215757 2011-06-23 07:55 svnClientAdapter.jar
-rw-r--r-- 1 root root 89412 2011-06-23 07:55 svnjavahl.jar
等等......
etc...
我的构建文件规定:
<taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask" />
但每当我执行
<target name="update">
<svn>
<update dir="."/>
</svn>
</target>
我得到可怕的:
update:
[svn] Missing 'javahl' dependencies on the classpath !
BUILD FAILED
/home/top/apps/utils/build.xml:26: Cannot find javahl, svnkit nor command line svn client
任何想法我做错了吗?
Any ideas what I'm doing wrong?
我以为复制svnant罐子到$ ANT_HOME / lib目录应该是够了吗?
I assumed copying the svnant jars into $ANT_HOME/lib should be enough?
推荐答案
Javahl方式总是需要某种操作系统相关的驱动程序。这主要是很难建立,我不建议使用它。
Javahl way always needs some kind of os-dependent driver. This is mostly hard to set-up and I don't recommend using it.
您应该尝试使用 svnkit
:
<svn svnkit="true">
本采用纯Java库,但需要 svnkit.jar
是在类路径中。
This uses the pure java library, but needs svnkit.jar
to be in the classpath.
- http://subclipse.tigris.org/svnant/svn.html
- http://subclipse.tigris.org/wiki/JavaHL
我只用后备/命令行版本,其中SVN可执行文件在PATH中。这在大多数情况下,没有问题,使用以下设置:
I only use the fallback/commandline version, where the svn executable is in the PATH. This works in most cases without problems with the following settings:
<svn svnkit="false" javahl="false">
注意:这些设置对于svnant 1.31及以前。因为1.32版本,你可以使用&LT; svnSetting /&GT;
,这是在描述对方的回答
Note: These settings are for svnant 1.31 and prior. Since version 1.32 you can use <svnSetting />
, which is described in the other answer
这篇关于找不到javahl,svnkit也不是命令行的svn客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!