在提交此问题之前,我阅读了相关问题,但无法找到与我的问题相同的确切问题。
我正在尝试在 Windows 框中设置一些自动化。我有 ant 目标要更新,我使用 eclipse 作为我的 java 开发编辑器。Windows 盒子安装了svn 客户端(TortoiseSVN) ,一旦项目被签出, 我就使用它从我的存储库中获取新的签出,我执行了 ant 目标。结果如下。
C:\svncheckout\Automation>ant update-svn 构建文件:build.xml 更新-svn: [svn] 开始... [svn] svn: 'C:\svncheckout\Automation' 不是工作副本 [svn] svn:无法从 'C:\svncheckout\Automation\.svn\format' 读取:C:\svncheck out\Automation\.svn\format(系统找不到指定的文件) [svn] svn: 'C:\svncheckout\Automation' 不是工作副本 [svn] svn:无法从 'C:\svncheckout\Automation\.svn\format' 读取:C:\svncheck out\Automation\.svn\format(系统找不到指定的文件) [svn] 失败! 构建失败 C:\svncheckout\Automation\build.xml:198: 无法更新目录 C:\svncheckout\Automation
这是我的 ant 目标,在阅读了一些论坛后,我发现最好明确告诉目标运行,svnkit
我已经删除了实际的用户名和密码。
<!-- target to update working copy -->
<target name="update-svn">
<svn svnkit="true" javahl="false" username="guest" password="guest">
<update dir= "${checkout}/Automation" revision="HEAD"/>
</svn>
</target>
先感谢您。