您好,我对Gradle复制任务中的**孔概念不完全了解。例如
task copyPoems(type: Copy) {
from 'text-files'
into 'build/poems'
include '**/sh*.txt'
}
包含和不包含**的区别是什么。
最佳答案
“**”表示包括子目录
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')
顺便说一下,由于API是相同的,用法与ant工具使用的用法完全相同。
关于file - **在Gradle Copy任务中意味着什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20217397/