How to copy a directory using Ant

ant, java

Solution

<copy todir="${dest.dir}" >  
    <fileset dir="${src.dir}" includes="**"/>  
</copy> 

believe that will do what you want... (Recursive copy done)

Problem

I have used `copydir` to copy a directory tree but it is deprecated. My directory contains some sub-directories, and some of those contain files and others contain more sub-directories. How can I copy the entire tree?

Original source