我正在尝试使用Linux机器上的ant从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
答案 0 :(得分:1)
<target name="checkout">
<exec executable="svn" dir="${where to checkout}">
<arg line=" co url --username=###### --password=######"/>
</exec>
</target>
答案 1 :(得分:-1)
请检查Java Home的.bash配置文件,它应指向实际的JDK home和JRE版本。如果它指向正确的目录,那就没问题了。