我通过ant任务验证了TortoiseSVN。
SVN=c:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
<project name="svn-letu" basedir="." default="checkout">
<!-- all properties are in build.properties -->
<property file="constants.properties" />
<!-- path to the svnant libraries. Usually they will be located in ANT_HOME/lib -->
<path id="svn.classpath">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<!-- load the svn task -->
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svn.classpath" />
<property name="checkoutDest" value="${checkout.dir}"/>
<target name="init">
<mkdir dir="${checkoutDest}"/>
</target>
<property name="svn-user" value="${svn.user}"/>
<property name="svn-password" value="${svn.password}"/>
<property name="svn-url" value="${project.svn.url}"/>
<target name="checkout" depends="init">
<svn username="${svn-user}" password="${svn-password}">
<checkout url="${svn-url}" revision="HEAD" destPath="${checkoutDest}" />
</svn>
</target>
</project>
constants.properties
project.svn.url=https://svnmsq.ttt.com/letu/trunk/App
svn.user=Andrei
svn.password=11111
checkout.dir=proba
svnant.jar
svnClientAdapter.jar
svnjavahl.jar
Buildfile: d:\Ant Task\build.xml [typedef] Could not load definitions from resource org/tigris/subversion/svnant/svnantlib.xml. It could not be found.
init:
checkout:
BUILD FAILED d:\Ant Task\build.xml:36: Problem: failed to create task or type svn Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place.
有人请帮帮我
答案 0 :(得分:0)
我认为你还需要javasvn.jar文件
答案 1 :(得分:0)
确保该jar中存在org/tigris/subversion/svnant/svnantlib.xml
它绝对属于1.3
版本,但不属于1.0