I am looking to copy a directory from one location to another. However, after looking at "copy" and "copyDir" (which is deprecated) it seems that Ant, by default, only copies the content of one location to another, not the actual directory (and everything in it).
So, as an example I have the following:
./Foo/test.txt
And I apply the following piece of Ant:
<copy todir="./build">
<fileset dir="./Foo"/>
</copy>
The result looks like this:
./build/test.txt
Whereas I would like it to be:
./build/Foo/test.txt
Hope that makes sense. How can I do that?
What about this:
<copy todir="./build">
<fileset dir=".">
<include name="Foo/**"/>
</fileset>
</copy>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With