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?
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:
fileset
file
dir
<copy todir="${destination_dir}"> <fileset dir="${source_dir}"/> </copy>
Copyright © 2021 Jogjafile Inc.
If you are using
fileset
withfile
attribute, it is just for one single file. To copy all the contents of a directory to another, you should usedir
attribute: