1

我正在尝试使用 Ant 文件集模式复制目录中的所有文件。

我尝试了以下,

**/*但是它们都**/*.*没有复制整个目录结构。

我的文件集模式有什么问题吗?

4

1 回答 1

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>
于 2014-08-08T15:49:08.827 回答