title: Overwriting existing files while doing a cvs checkout
body: <p>I have an Ant script which does a CVS- checkout every time the application needs to be deployed.
  The ideal way to do this would be to delete the existing local code first and then do a checkout, but it seems I am not able to delete the project since my build file is also a part of it.
  So I want to do a checkout where my existing files will be replaced by the ones in the repository.
  Is there a way to force a cvs checkout which would overwrite the existing files?</p>
  
  <p>My build target looks like </p>
  
  <pre><code>&lt;target name="deploy.branch" depends="checkPropertyForBranch" if="branchPropertyExist"&gt;
          &lt;record name="log.txt" action="start" /&gt;
          &lt;echo message="${release.number}" /&gt;
          &lt;antcall target="tag.branch" /&gt;
          &lt;antcall target="checkout.branch" /&gt;
          &lt;antcall target="stopJboss" /&gt;
          &lt;antcall target="stopRemoteJboss" /&gt;
          &lt;sleep seconds="10" /&gt;
          &lt;antcall target="replaceTag" /&gt;
          &lt;antcall target="deploy" /&gt;
          &lt;antcall target="moveConfigFiles" /&gt;
          &lt;antcall target="promote" /&gt;
          &lt;parallel&gt;
              &lt;antcall target="startJboss" /&gt;
              &lt;antcall target="startRemoteJboss" /&gt;
          &lt;/parallel&gt;
          &lt;antcall target="waitForWebSite" /&gt;
          &lt;antcall target="mailSuccessBranch" /&gt;
          &lt;record name="log.txt" action="stop" /&gt;
      &lt;/target&gt;
  </code></pre>
  
  <p>and the checkout target is like </p>
  
  <pre><code> &lt;target name="checkout.branch"&gt;
          &lt;tstamp&gt;
              &lt;format property="CHECKOUT" pattern="M/d/yyyy, hh:mm:SS a, z" locale="en" /&gt;
          &lt;/tstamp&gt;
          &lt;property name="checkout_start" value="${CHECKOUT}" /&gt;
          &lt;echo message="CVS checkout of BRANCH: ${branch_tag}" /&gt;
          &lt;!--&lt;delete dir="${basedir}"/&gt;--&gt;
          &lt;cvspass cvsroot="cvsroot" password="*****" /&gt;
          &lt;cvs cvsroot="cvsroot" command="co -r ${branch_tag} project"dest="${checkout.dir}"  /&gt;
      &lt;/target&gt;
  </code></pre>
  
  <p>The build.xml is present at <code>project/scripts/build.xml</code>
  Where the <code>basedir</code> is <code>../</code> ie <code>"project"</code></p>