我希望通过以下命令将文件复制到目录(如果不存在)和groovy(Gradle):
from(<source>){
into <destination>
}
答案 0 :(得分:1)
task copySomeFiles(type: Copy) {
duplicatesStrategy= DuplicatesStrategy.EXCLUDE
from 'from/path'
into 'to/path'
}
DuplicatesStrategy.EXCLUDE声明不应覆盖文件
文档:celeryd