如何记录gradle拷贝方式的文件?
How to log the files of the gradle copy method?
方法 copy
中的 println 是否可以将所有文件名打印到控制台。或者是否有其他选项可以打印复制的文件?
copy {
from "${source}"
into "${target}"
include "foo"
include "xyz"
println ???
}
也许试试:
copy {
from "${source}"
into "${target}"
include "foo"
include "xyz"
eachFile { println it.name }
}
方法 copy
中的 println 是否可以将所有文件名打印到控制台。或者是否有其他选项可以打印复制的文件?
copy {
from "${source}"
into "${target}"
include "foo"
include "xyz"
println ???
}
也许试试:
copy {
from "${source}"
into "${target}"
include "foo"
include "xyz"
eachFile { println it.name }
}