title: CruiseControl.NET check output for success messages
body: <p>We have a very large legacy system which is built using complicated batch files.  Our CruiseControl.NET server simply calls the batch files and checks the return code, which works fine and produces a successful build.</p>
  
  <p>Sometimes however the batch file doesn't seem to return properly after a successful build, and CruiseControl.NET simply hits the timeout and reports the build as failed.</p>
  
  <p>Is there any way I can get CruiseControl.NET to check the output from the batch file for the string which indicates a successful build, and correctly report the status of the build?</p>
  
  <p>(When I get a spare day or two I want to rewrite the build scripts using NAnt or something, but it's not been given a high priority since its so complicated, and it's currently working)</p>
  
  <p>EDIT: this is the entry in ccnet.config</p>
  
  <pre><code>  &lt;project name="MyProject" queue="Q1" queuePriority="1"&gt;
      &lt;workingDirectory&gt;D:\MyProject&lt;/workingDirectory&gt;    
      &lt;triggers /&gt;
      &lt;tasks&gt;
        &lt;exec&gt;
          &lt;executable&gt;buildexe.bat&lt;/executable&gt;
          &lt;baseDirectory&gt;D:\MyProject&lt;/baseDirectory&gt;
          &lt;buildArgs&gt;V12.8 MyProject&lt;/buildArgs&gt;
          &lt;buildTimeoutSeconds&gt;6000&lt;/buildTimeoutSeconds&gt;
          &lt;successExitCodes&gt;0&lt;/successExitCodes&gt;
        &lt;/exec&gt;
      &lt;/tasks&gt;
      &lt;publishers&gt;
        &lt;xmllogger logDir="D:\MyProject\logs\V12.8" /&gt;    
      &lt;/publishers&gt;    
    &lt;/project&gt;
  </code></pre>