title: Maven ANT task to copy a file during test when file does not exists
body: <p>We have stuck is a scenario were we need to copy some property file to class path, when the file does not exists.</p>
  
  <p>We are using maven to build and maven ant task to copy file.</p>
  
  <p>We have used any copy task like below:</p>
  
  <pre><code>&lt;copy file="src/systemConfig.properties" tofile="src/test/resources/systemConfig.properties" /&gt;
  </code></pre>
  
  <p>This copy task will copy the src file to dest when file does not exits or dest file is older than src file.</p>
  
  <p>However i need to do the copy if and only if file does not exist.</p>
  
  <p>Could you please help me?</p>