I’m trying to copy a directory using the Ant copy task.
I am a newbie at Ant; my current solution is:
<copy todir="${release_dir}/lib">
<fileset dir="${libpath}" />
</copy>
I’m wondering if there is a better and shorter way to accomplish the same thing?
First of all, those are the examples from Ant documentation:
Copy a directory to another directory
Copy a set of files to a directory
Copy a set of files to a directory, appending .bak to the file name on the fly
Secondly, here is the whole documentation about copy task.