什么**意味着在Gradle复制任务 [英] What ** means in Gradle Copy task
本文介绍了什么**意味着在Gradle复制任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不完全理解在Gradle复制任务**的洞概念。例如
Hi I don't fully understand the hole conception of ** in Gradle copy task. For example
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是相同的。
By the way, the usage is EXACTLY the same way the ant tool uses it, since the API is the same.
这篇关于什么**意味着在Gradle复制任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文