Rather than combining inclusion/exclusion filters, I’d like to do something like:
sourceSets {
test {
sourceFiles=[“file1.groovy”, “file2.groovy”]
} }
Is this possible?
Rather than combining inclusion/exclusion filters, I’d like to do something like:
sourceSets {
test {
sourceFiles=[“file1.groovy”, “file2.groovy”]
} }
Is this possible?
No, it isn’t possible. You must specify one or more directories (or stick to the defaults). However, the include filters will look pretty much like what you have above. In case it helps, you can also use programmatic include filters (‘include { File file -> … }’).
Thanks (again) peter
So… These programmatic includes seem quite useful. Are they documented anywhere ? Its not clear how the filter is meant to work ?
Or Maybe you can finish off the …'s in your example above .
I’ve created a new question regarding the use of the includes syntax, seems like a separate subject…
Thanks again for the feedback…
Ah ! I found a pretty reasonable example/ answer here:
The key is that EXCLUDES win over INCLUDES, so in order to accomplish this we need to:
Is there a more direct way.
All you need here is include filters.