title: how to copy a directory in ant
body: <p>Say I have directory structure like this:  </p>
  
  <blockquote>
    <p>base_dir1/src_dir</p>
    
    <p>base_dir2/dest_dir</p>
  </blockquote>
  
  <p>How do I copy <code>src_dir</code>(folder + contents) into <code>dest_dir</code>.</p>
  
  <p>If I use copy task like this:</p>
  
  <pre><code>&lt;copy todir="base_dir2/dest_dir"&gt;
      &lt;fileset dir="base_dir1/src_dir"/&gt;
  &lt;/copy&gt;
  </code></pre>
  
  <p>It will copy all the contents of <code>src_dir</code> into <code>dest_dir</code>, but will not create a <code>src_dir</code> folder inside <code>dest_dir</code>.</p>
  
  <p>I can make it work by using the copy task like this:</p>
  
  <pre><code>&lt;copy todir="base_dir2/dest_dir"&gt;
      &lt;fileset dir="base_dir1"&gt;
        &lt;include name="src_dir/"/&gt;
      &lt;/fileset&gt;
  &lt;/copy&gt;  
  </code></pre>
  
  <p>Is this the correct way or is there a better way to do it?</p>