I am trying to delete the folder which is the svn checkout of my project so that I can do a new check. The problem is that whenever I try to delete this folder using the nant delete task, I keep getting the following error:
[delete] Deleting directory 'C:\projects\my_project\Trunk'.
BUILD FAILED
c:\Projects\my_project\default.build(63,4):
Cannot delete directory 'C:\projects\my_project\Trunk\SomeFolder\AnotherFolder'.
The directory is not empty.
Is there a trick to deleting a working copy with nant here? I tried to remove only the .svn directories, but nant didn’t delete them all for any reason. Here is the task I used for this, but it did not work:
<delete>
<fileset basedir="myproject\trunk">
<include name="\**\.svn" />
</fileset>
</delete>
Any ideas would be greatly appreciated!
source
share