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 contai
copydir
From the example here, you can write a simple Ant file using copy task.
This should copy everything inside src_dir (excluding it) to new/dir.
src_dir
new/dir