Hi,
I’m trying to filter only test resources in each subproject. I have followed this example:
http://mrhaki.blogspot.co.uk/2010/11/gradle-goodness-add-filtering-to.html
replacing the “all” with * as necessary in the latest gradle versions and slighly adapted to this:
afterEvaluate {
def processResourcesTasks = sourceSets*.processResourcesTaskName.collect { tasks[it] }
processResourcesTasks.each {
it.configure({
filter(ReplaceTokens, tokens: testProperties)
})
}
}
However, this filters all resources in java and also in test. How would I go about restricting this to only filter resources in my src/main/resources folder?
Thank you!