0
votes

Suppose I have a directory structure like the following

/a/b/testB.xml
/a/c/testC.xml
/a/testD.xml

and I want to copy everything inside /a to /build

so that I will have

/build/b/testB.xml
/build/c/testC.xml
/build/testD.xml

What ant command should I use? I have tried using fileset and it looks like that it only copies the files that are specified in the includes to the todir directory.

1

1 Answers

1
votes

Try this:

<copy todir="build">
  <fileset dir="a">
    <include name="**/*"/>
  </fileset>
</copy>

The docs on FileSet are here.