<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" />
...
<target name="main" depends="clean">
<svn javahl='false' >
<checkout url="${gae_api_source}" destPath="${localDir}" recurse="true">
</checkout>
</svn>
</target>
我使用上面的SVN ant脚本签出GAE源代码,但会导致错误:
[svn] <Checkout> started ...
[svn] svn: connection refused by the server
[svn] svn: OPTIONS request failed on '/svn/trunk/java/src/main/com/google/appengine/api'
[svn] svn: connection refused by the server
[svn] svn: OPTIONS request failed on '/svn/trunk/java/src/main/com/google/appengine/api'
[svn] Connection timed out: connect
[svn] <Checkout> failed !
我使用SvnAnt 1.3.1, Ant 1.8.1,当我从tortoisesven或Eclipse结帐时,它工作得很好,有什么想法吗?
原来是代理问题(我没有设置),感谢Alex K的精彩提醒。