Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Ant 文件集模式复制目录中的所有文件。
我尝试了以下,
**/*但是它们都**/*.*没有复制整个目录结构。
**/*
**/*.*
我的文件集模式有什么问题吗?
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>