title: Nant build file having batch files are not exited with error
body: <p>I have a small issue in a nant build file.</p>
  
  <p>Brief : we have a 2 build files EX (web and DB) which are independent and called seqentially..</p>
  
  <p>nant -buildfile:web.build</p>
  
  <p>nant - buildfile:db.build</p>
  
  <p>To save time we are building it in parallel by adding a bat file and inside bat file we call both web &amp; db</p>
  
  <p>&lt;  exec program="parallel.bat" ></p>
  
  <p>parallel.bat : </p>
  
  <p>start web.bat</p>
  
  <p>start db.bat</p>
  
  <p>web.bat : </p>
  
  <p>nant -buildfile:web.build</p>
  
  <p>db.bat</p>
  
  <p>nant - buildfile:db.build</p>
  
  <p>it works fine but the concern is if there is any failure in web.bat or db.bat ... the build continues calling the remaining targets present in the main build file, without exiting .</p>
  
  <p>Is there any way to stop the build if there is any failure or can we achieve the parallelism of web and db without using batch files (is there any task in nant ). we use MSBuild to build the web</p>
  
  <p>Thanks,</p>
  
  <p>Vishal</p>