svnAnt任务ubuntu失败,无法找到javahl、svnkit或命令行svn客户端

svnAnt任务ubuntu失败,无法找到javahl、svnkit或命令行svn客户端,svn,ubuntu,ant,svnant,Svn,Ubuntu,Ant,Svnant,这些问题都有相同的问题,但没有为我提供解决方案 我正在使用 ubuntu 12.10 蚂蚁1.8.2 第1.3.1节 svn版本1.6 我使用apt-get-install下载 svnclient libsvnjava 我已经准备好了 爪哇之家酒店 安图之家酒店 我将ANT_HOME/bin添加到路径中 我还将/usr/lib/x86_64-linux-gnu/jni/添加到路径中,这似乎不是这些lib通常使用的位置 如果我从命令行运行ant,它将失败: $ ant compile Bui

这些问题都有相同的问题,但没有为我提供解决方案

我正在使用

ubuntu 12.10

蚂蚁1.8.2

第1.3.1节

svn版本1.6

我使用apt-get-install下载

svnclient

libsvnjava

我已经准备好了

爪哇之家酒店

安图之家酒店

我将ANT_HOME/bin添加到路径中 我还将/usr/lib/x86_64-linux-gnu/jni/添加到路径中,这似乎不是这些lib通常使用的位置

如果我从命令行运行ant,它将失败:

$ ant compile 
Buildfile: /home/build.xml

init:

export:
  [svn] Missing 'javahl' dependencies on the classpath !

BUILD FAILED
/home/build.xml:28: Cannot find javahl, svnkit nor command line svn client

Total time: 0 seconds
如果我将
javahl=“false”svnkit=“true”
属性添加到svn标记,它将失败

$ ant compile
Buildfile: /home/build.xml

init:

export:
  [svn] Deprecated attribute 'javahl'. This attribute will disappear with SVNANT 1.3.2. Use svnSetting instead.
  [svn] Deprecated attribute 'svnkit'. This attribute will disappear with SVNANT 1.3.2. Use svnSetting instead.
  [svn] svn: authentication cancelled
  [svn] svn: authentication cancelled
  [svn] <Export> failed.

BUILD FAILED
/home/build.xml:28:     Can't export

Total time: 0 seconds
您确实安装了命令行客户端(
svnclient
),但没有告诉Ant使用它:

javahl="false" svnkit="false"
两者都需要设置为false才能使用命令行客户端。从:

javahl="false" svnkit="false"
javahl  Set to "false" to use command line client interface instead of JNI JavaHL binding.
        Deprecated. This attribute won't work with SVNANT 1.3.2+ . Use refid for svnSetting instead.
        Default: true

svnkit  Set to "false" to use command line client interface instead of SVNKit binding.
        Deprecated. This attribute won't work with SVNANT 1.3.2+ . Use refid for svnSetting instead.
        Default: false