title: Ant : moving a file into a target directory
body: <p>I am trying to move the file test.txt into the 'output' target folder from the base directory where the file exists. Is there any other way other than copying the file test.txt to the required directory and deleting the file test.txt from the base directory, where it has been originally created. Also please suggest if there is any alternative to use echo tag to create the file.</p>
  
  <pre><code>&lt;target name="output"&gt;
      &lt;checksum file="${fileName}" property="md5"/&gt;
      &lt;echo file="test.txt" append="true" message="${fileName} - ${md5}"&gt;${line.separator}&lt;/echo&gt;
      &lt;copy file="test.txt" todir="output"/&gt;
      &lt;delete file="test.txt" /&gt;
  &lt;/target&gt;
  </code></pre>