我正在尝试使用ant从Linux机器从svn结帐。我已经写了build.xml,但是它显示了错误。
build . xml:
<?xml version="1.0"?>
<project name="SVN" default="build" basedir=".">
<property name="ANT_HOME" value="/dun/d67loc1/software/apache-ant-1.6.5"/>
<path id="svnant.classpath">
<pathelement location="${ANT_HOME}/lib"/>
<fileset dir="${ANT_HOME}/lib/">
<include name="**/*.jar"/>
</fileset>
</path>
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath"/>
<target name="checkout">
<echo>svn checkout </echo>
<svn username="...." password="....">
<checkout url="https://svm.acnielsen.com/repos/IDOArchitecture/Ascent/Bin/Config/trunk/Production/TIBCO/FavConfig" destPath="SRC" />
</svn>
</target>
<target name="build" depends="checkout">
<description>Main target</description>
</target>
</project>
当执行它时,我得到下面的错误:
Buildfile: build.xml
checkout:
[echo] svn checkout
[svn] <Checkout> started ...
[svn] svn: handshake_failure: remotely generated; fatal
[svn] svn: OPTIONS request failed on '/repos/IDOArchitecture/Ascent/Bin/Config/trunk/Production/TIBCO/FavConfig'
[svn] svn: handshake_failure: remotely generated; fatal
[svn] svn: OPTIONS request failed on '/repos/IDOArchitecture/Ascent/Bin/Config/trunk/Production/TIBCO/FavConfig'
[svn] <Checkout> failed !
BUILD FAILED
/home/tibco/ReleaseManagement/svn_test/build.xml:13: Can't checkout
Total time: 2 seconds
<target name="checkout">
<exec executable="svn" dir="${where to checkout}">
<arg line=" co url --username=###### --password=######"/>
</exec>
</target>
请检查Java Home .bash配置文件,它应该指向实际的JDK Home和JRE版本。如果它指向正确的目录就可以了