Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Where:
- origin/
- ├── foo
- │ └── fum.txt
- ├── bar
- │ └── other.txt
- └── biz
- └── baf
- └── bop
- └── default.properties
- And desired result is:
- destination/
- └── sub
- ├── fum.txt
- ├── other.txt
- └── default.properties
- */
- task copyFile(type: Copy) {
- from "origin"
- into "destination"
- include 'foo/fum.txt', 'bar/other.txt', 'biz/baf/bop/default.properties'
- eachFile { fcd ->
- fcd.path = "sub/${cfd.name}"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement