我有像..
<?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 加载定义。找不到。查看:
现在要做什么??