Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. /*
  2. Where:
  3. origin/
  4. ├── foo
  5. │   └── fum.txt
  6. ├── bar
  7. │   └── other.txt
  8. └── biz
  9.    └── baf
  10.    └── bop
  11.    └── default.properties
  12.  
  13. And desired result is:
  14. destination/
  15. └── sub
  16.    ├── fum.txt
  17.    ├── other.txt
  18.    └── default.properties
  19. */
  20.  
  21. task copyFile(type: Copy) {
  22. from "origin"
  23. into "destination"
  24. include 'foo/fum.txt', 'bar/other.txt', 'biz/baf/bop/default.properties'
  25. eachFile { fcd ->
  26. fcd.path = "sub/${cfd.name}"
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement