【问题标题】:How to log the files of the gradle copy method?如何记录 gradle 复制方法的文件?
【发布时间】:2015-04-06 10:08:58
【问题描述】:

是否可以在方法copy 中使用 println 将所有文件名打印到控制台。或者是否有其他选项可以打印复制的文件?

copy {
  from "${source}"
  into "${target}"
  include "foo"
  include "xyz"
  println ???
}

【问题讨论】:

    标签: logging gradle copy println


    【解决方案1】:

    不妨试试:

    copy {
       from "${source}"
       into "${target}"
       include "foo"
       include "xyz"
       eachFile { println it.name }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-04-17
      • 2013-04-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-15
      • 1970-01-01
      相关资源
      最近更新 更多