How to log the files of the gradle copy method?
Asked Answered
P

1

10

Is it possible with println inside the method copy to print all file names to the console. Or is there another option to print the copied files?

copy {
  from "${source}"
  into "${target}"
  include "foo"
  include "xyz"
  println ???
}
Prithee answered 6/2, 2015 at 9:47 Comment(0)
E
22

Maybe try:

copy {
   from "${source}"
   into "${target}"
   include "foo"
   include "xyz"
   eachFile { println it.name }
}
Eduino answered 6/2, 2015 at 10:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.