title: Generate Checksum for directories using Ant build command
body: <p>I tried to generate the <a href="/questions/tagged/checksum" class="post-tag" title="show questions tagged &#39;checksum&#39;" rel="tag">checksum</a> for directory using <a href="/questions/tagged/ant" class="post-tag" title="show questions tagged &#39;ant&#39;" rel="tag">ant</a>.</p>
  
  <p>I have tried the below command, but it generates recursively inside each folder for each file.</p>
  
  <pre><code>&lt;target name="default" depends=""&gt;
      &lt;echo message="Generating Checksum for each environment" /&gt;
      &lt;checksum todir="${target.output.dir}" format="MD5SUM" &gt;
          &lt;fileset dir="${target.output.dir}" /&gt;
      &lt;/checksum&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>I just want to generate one <code>checksum</code> for particular directory using <code>Ant</code> command. 
  How do I do that?</p>