[英]Check if SVN checkout with SVNANT was successful or failed
I am not able to use something similar to resultproperty="checkout.res" while checkout from SVNANT, which can used in "exec". 从SVNANT检出时,我无法使用类似于resultproperty =“ checkout.res”的内容,而可以在“ exec”中使用。
Below is the snippet of my ant build file. 以下是我的ant构建文件的代码段。
<target name="SVNCheckout">
<svn username="${svn.username}" password="${svn.password}" failonerror="true" resultproperty="checkout.res" >
<checkout url="${svn.base.url}/myproject" revision="HEAD" destPath="../../../../stubswds" />
</svn>
</target>
Getting error as below : 出现如下错误:
Buildfile: /home/Workspace/Checkout/src/main/resources/buildandcheckout.xml
SVNCheckout:
BUILD FAILED
/home/Workspace/Checkout/src/main/resources/buildandcheckout.xml:113: svn doesn't support the "resultproperty" attribute
Total time: 1 second
You can use the status task in svnAnt to assign the property name for the appropriate type. 您可以使用svnAnt中的状态任务为适当的类型分配属性名称。 In your case, going on scant information, I'd imagine the line might be:
在您的情况下,仅提供很少的信息,我想这行可能是:
<status
path="foo"
textStatusProperty="checkout.res"/>
From the page, I'd check for a value of incomplete
if the svnant call didn't finish appropriately. 如果未正确完成svnant调用,则从页面上检查
incomplete
值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.