java - Check if SVN checkout with SVNANT was successful or failed -
i not able use similar resultproperty="checkout.res" while checkout svnant, can used in "exec".
below snippet of ant build file.
<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 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 "resultproperty" attribute total time: 1 second
you can use status task in svnant assign property name appropriate type. in case, going on scant information, i'd imagine line might be:
<status path="foo" textstatusproperty="checkout.res"/>
from page, i'd check value of incomplete
if svnant call didn't finish appropriately.
i hope helps , ask accept , vote if helpful.
Comments
Post a Comment