2

我有像..

<?xml version="1.0"?>
<project name="antSVN" default="build" basedir=".">
<path id="path.svnant">
<pathelement location="svnant.jar"/>
<pathelement location="svnClientAdapter.jar"/>
<pathelement location="svnjavahl.jar"></pathelement> 
    <!-- <pathelement location="/home/ezdi/apache_ant/svnant-1.3.1/lib/svnant.jar"/>
    <pathelement location="/home/ezdi/apache_ant/svnant-1.3.1/lib/svnClientAdapter.jar"    />
    <pathelement location="/home/ezdi/apache_ant/svnant-1.3.1/lib/svnjavahl.jar" />  -->

</path>

<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpath="path.svnant"/>
<target name="checkout">
    <svn username="charvee" password="charvee123">
        <checkout url="svn+ssh://charvee@192.168.1.210/home/EZCAC/source/ezCACWeb" revision="HEAD" destpath="src" />
    </svn>
</target>
<target name="update-codebase">
    <svn username="${svn.username}" password="${svn.password}">
        <update revision="HEAD" recurse="true" dir="${project.code}" />
    </svn>
</target>
<target name="build" depends="checkout">
    <description>Main target</description>
</target>

它给了我这样的错误:

构建文件:/home/charvee/ANT_WS/antSVN/build.xml [typedef] 无法从资源 org/tigris/subversion/svnant/svnantlib.xml 加载定义。找不到。查看:

现在要做什么??

4

1 回答 1

1

您应该确保以下罐子在您的%ANT_HOME%\lib

  1. svnant.jar
  2. svnClientAdapter.jar
  3. svnjavahl.jar

然后重试。希望这是有道理的。

于 2016-11-18T07:03:45.763 回答