1

I'm trying to copy all the files in a directory using Ant Fileset pattern.

I tried the following,

**/* and **/*.* but neither of them copies entire directory structure.

Is there any thing wrong in my file set pattern?

indiws
  • 283
  • 1
  • 3
  • 6

1 Answers1

2

If you are using fileset with file attribute, it is just for one single file. To copy all the contents of a directory to another, you should use dir attribute:

    <copy todir="${destination_dir}">
        <fileset dir="${source_dir}"/>
    </copy>
Jean Waghetti
  • 4,711
  • 1
  • 18
  • 28