Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
File **在渐变复制任务中的含义是什么_File_Copy_Gradle - Fatal编程技术网

File **在渐变复制任务中的含义是什么

File **在渐变复制任务中的含义是什么,file,copy,gradle,File,Copy,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

嗨,我不完全理解梯度复制任务中**的空洞概念。比如说

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')

顺便说一句,用法与ant工具使用它的方式完全相同,因为API是相同的。

“**”表示包含子目录

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是相同的