0

I'm trying to use svnkit to access subversion from the svnant ant tasks with the following result:

BUILD FAILED
/path/to/build.xml:49: Cannot find javahl, svnkit nor command line svn client
    at org.tigris.subversion.svnant.SvnTask.getClientAdapter(Unknown Source)
    at org.tigris.subversion.svnant.SvnTask.execute(Unknown Source)

I've verified that all the appropriate jars are on the classpath including svnkit.jar and svnjavahl.jar.

I get the same result running ant within eclipse 20100218-1602 with a similar classpath.

Curiously the following java program that invokes the above class appears to work:

org.tigris.subversion.svnant.SvnTask task = new org.tigris.subversion.svnant.SvnTask();
ISVNClientAdapter adapter = org.tigris.subversion.svnant.SvnTask.getClientAdapter(task);
System.out.println(adapter);

prints org.tigris.subversion.svnclientadapter.svnkit.SvnKitClientAdapter

Also, the subclipse eclipse plugin uses svnkit (the one that came with eclipse) just fine.

4

2 回答 2

0

我想我已经通过在类路径中添加更多依赖的 jar 文件来解决这个问题。以后多...

于 2010-07-14T13:52:10.440 回答
0

(2012 年 7 月更新)

其实 tigris.org 已经发布了 Subclipse 1.8.14,兼容 SVN 1.7

但是tigris还没有发布兼容SVN 1.7的svnAnt svnAnt是基于svnKit的,但是只有svnkit 1.7兼容SVN 1.7

我探索了 svnAnt 的“当前开发”源代码,/lib 中包含的 svnKit 库仍然是旧的 1.6.15,仅支持 SVN 1.6

所以我们应该等几个月。

自行检查:

  • 转到 svnAnt 页面 > 当前开发
  • 下载 /lib 下的 svnKit 库
  • 打开它(解压缩)并查看文件“svnkit.build.properties”
于 2012-01-17T16:34:45.080 回答