ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Omar Abou Deif <>
Subject copy: "fileset dir" copies only file
Date Sat, 03 Sep 2005 11:58:24 GMT
Hello all,

I don't get what I do wrong. The manual says:

Copy a directory to another directory

  <copy todir="../new/dir">
    <fileset dir="src_dir"/>

Here is my xml code:
<!-- copy image directory -->
  <copy todir="${distdir}" verbose="true">
    <fileset dir="${imagedir}"/>

${distdir} = "./build/dist"
${imagedir}= "./resources/img", with a file "testimg.png" inside.

But Ant just copies "testimg.png" to ./build/dist, not the directory
"img". I guess I could just create the directory, but I am really
curious what I do wrong. Why doesn't it copy the directory itself?

Thanks for any help,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message