title: groovy zipping a directory with files in use
body: <p>I am trying to zip an entire directory in a groovy program.  I have used the built in ant target to zip the directory and normally this works, except that sometimes 2-3 files are in use which I don't care about but the zip code actually aborts because of that - any ideas on how to fix this?</p>
  
  <p>Thanks!</p>
  
  <p>Code:</p>
  
  <pre><code>def ant = new AntBuilder() 
  ant.zip(
      destfile: "C:/temp.zip", 
      basedir: "c:/Temp/"
  ) 
  </code></pre>