Gradle copy: filesMatching(multiple files) without a pattern. E.g.,
task copyFoo(type: Copy) {
from ("/path") {
filesMatching("foo.xml") {
filter(ReplaceTokens, tokens : [VERSION, '1.2'])
}
filesMatching("bar.xml") {
filter(ReplaceTokens, tokens : [VERSION, '1.2'])
}
filesMatching("hello.xml") {
filter(ReplaceTokens, tokens : [VERSION, '1.2'])
}
}
}
Is there a way to merge them? like
filesMatching("foo.xml" | "hello.xml" | "bar.xml") {
filter(ReplaceTokens, tokens : [VERSION, '1.2'])
}
Can the pattern be a regex?