文件集实际上做了什么?

What does fileset actually do?

ant.path(id: 'cobertura.classpath.id') {
    fileset(dir: 'cobertura', includes: '**/*.txt', excludes: '**/*.java')

我知道它将包含 .txt 的所有文件分组并排除 cobertura 目录中的 all.java。

我的问题是;如果我 运行 任务是创建一个文件夹、zip 文件还是什么?当它得到(分组)时。

My Reference

fileset 什么都不做。顾名思义,它只是一组文件。所以,上面的代码定义了一个path变量,它的id是'cobertura.classpath.id',它包含了cobertura.

目录下的所有.txt文件。

我猜构建文件中的一些其他任务使用了这个路径。