Created
February 4, 2016 12:38
-
-
Save miquelbeltran/13d325543f0b6f38f849 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def contentSpec = copySpec { | |
//exclude 'nocopy.txt', 'nocopy_too.txt' | |
exclude {it.file.name.startsWith('nocopy')} | |
from 'src' | |
} | |
task copyImages (type: Copy) { | |
// Parameters can be imported from a variable | |
with contentSpec | |
into 'dest' | |
// Replaces $name with Miquel | |
expand ( | |
[name: 'Miquel'] | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment