title: CVS commit Example from ANT build.xml
body: <p>My build.xml has...</p>
  
  <pre><code>&lt;property name="cvs.directory" value="MyProj/build" /&gt;
  
  
  
  &lt;target name="CVS.Commit" depends="login"&gt;
    &lt;echo&gt;Commiting EAR file to CVS....&lt;/echo&gt;
    &lt;cvs command="commit abc.ear" cvsRoot="${cvs.directory}" quiet="true" failonerror="false"/&gt;
     &lt;/target&gt;
  </code></pre>
  
  <p>I get below error.</p>
  
  <pre><code>[echo] Commiting EAR file to CVS....
    [cvs] cvs commit: CVSROOT "MyProj/build" must be an absolute pathname
    [cvs] cvs [commit aborted]: Bad CVSROOT.
  </code></pre>
  
  <p>MyProj - is inside HEAD in cvs and it has a 'build' directory already with old version abc.ear</p>
  
  <p>Any suggestions? Thanks!</p>