嗨,我不完全理解Gradle复制任务中**的洞概念。例如
task copyPoems(type: Copy) {
from 'text-files'
into 'build/poems'
include '**/sh*.txt'
}使用和不使用**的include有什么区别?
发布于 2013-11-26 22:16:22
'**‘表示包含子目录
include '**/sh*.txt' // include all sh*.txt files in 'text-files' and any subdirectory
include 'sh*.txt' // include all sh*.txt files in only the one directory (eg, 'text-files')顺便说一句,它的用法与ant工具的用法完全相同,因为API是相同的。
https://stackoverflow.com/questions/20217397
复制相似问题