Same with cp command. It will copy the content if the target folder
doesn't exist, and will copy the top folder and its content if the
target folder does exist.
Try it yourself and you'll see.
Sébastien
On Jun 15, 2006, at 1:25 PM, Ken Anderson wrote:
> I'm trying to setup a target that will copy a directory from my
> source location to the install location. According to the Ant doc
> at apache.org, this should do it:
>
> <copy todir="${dest.dir}/${project.name}.woa">
> <fileset dir="INTCX_HOME"/>
> </copy>
>
> Unfortunately, what it does is take the files that are INSIDE the
> INTCX_HOME directory and place them into the .woa. The Ant doc
> says this:
>
> Copy a directory to another directory
>
> <copy todir="../new/dir">
> <fileset dir="src_dir"/>
> </copy>
>
>
> Any thoughts?
>
> Thanks!
> Ken
>
This archive was generated by hypermail 2.0.0 : Thu Jun 15 2006 - 18:49:36 EDT