我有一个像..的文件
<?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无法从资源org/tigris/subversion/svnant/svnantlib.xml加载定义但没有找到。结帐:
现在该怎么办??
您应该确保在您的%ANT_HOME%lib
中有以下jar:
-
svnant.jar
-
svnClientAdapter.jar
-
svnjavahl.jar
然后重试。