在提交此问题之前,我阅读了相关问题,但无法找到与我的问题相同的确切问题。SVN-ANT错误 - “不是工作副本”
我想在窗口框上设置一些自动化。我有ant目标来做更新,我用eclipse作为我的java开发编辑器。 Windows盒子有svn客户端(TortoiseSVN)安装和我用于从我的存储库获得一个新的结帐一旦项目签出后,我执行蚂蚁目标。结果如下。
C:\svncheckout\Automation>ant update-svn Buildfile: build.xml update-svn: [svn] started ... [svn] svn: 'C:\svncheckout\Automation' is not a working copy [svn] svn: Cannot read from 'C:\svncheckout\Automation\.svn\format': C:\svncheck out\Automation\.svn\format (The system cannot find the file specified) [svn] svn: 'C:\svncheckout\Automation' is not a working copy [svn] svn: Cannot read from 'C:\svncheckout\Automation\.svn\format': C:\svncheck out\Automation\.svn\format (The system cannot find the file specified) [svn] failed ! BUILD FAILED C:\svncheckout\Automation\build.xml:198: Cannot update dir 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>
谢谢您提前。
upvote。我强烈怀疑这是(我)的问题。 SVN 1.7从每个子文件夹的'.svn'文件夹到结账根目录下的一个'.svn'文件。我的NAnt脚本在我们的(Jenkins)构建服务器上运行良好,其中“子根文件夹”是单独的签出。在我的本地机器上,我在我们的“根”下有一个结帐,脚本失败。 – radarbob 2016-03-30 19:14:52