I read related question before submitting this question but wasn't able to find the exact question that has the same issue as mine.
I am trying to setup some automation on a windows box. I have ant target to do update and I have used eclipse as my java development editor. Windows box have svn client (TortoiseSVN) installed and I used that to get a fresh checkout from my repository once the project was checked out, I executed the ant target. The result was following.
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
Here is my ant target, and after reading some forums I found out that its better to explicitly tell the target to run with svnkit I have removed actual username and password.
<!-- 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>
Thank You in advance.