Which documentation are you referring to? “include [a, b]” would never work here because it would be considered a subscript operation by Groovy.
Ah, sorry Pater, that was my mistake when I typed it in. I meant to type “include ‘a’, ‘b’” which was taken from the samples that came with the gradle milestone 3 zip.
Because PatternFilterable has an include() method but no includes() method.
Again, my mistake, I was thinking bean accessors and I did not read the source code well enough.
My original premise was that by having the convenience methods for includes, was based on the fact that I ended up using new HashSet to make use of the setIncludes method.
However, as you pointed out there is a shorter form:
includes = [‘fred.java’, ‘bob.java’]
But by having the convenience method for includes you could shorten this to:
includes ‘fred.java’, ‘bob.java’
It makes the resulting build file a little more consistent when mixed along side code that uses exclude in same PatternFilterable definition.