Hi,
Am 28.09.2011 um 22:25 schrieb phil swenson:
> So if I interpret you correctly and look at the GroovyDoc for the
> TaskOutputs...
>
> TaskOutputs file(Object path)
>
> this is a replace because it would be an assignment
>
> and
>
> TaskOutputs files(Object... paths)
>
> this is additive because it's multiple?
>
> So another general rule would be plural methods are additive, singular
> replace?
I think it's more about file vs. setFile. file as well as files are methods and
as such additive.
output.file("some-file")
output.files("more", "files")
setFile on the other hand is assignment and as such replacement.
output.file = "some-file-replacing-previoues-stuff"
output.files = [ "more", "files", "replacing", "previous", "stuff" ]
(Examples more or less hypothetical. I haven't checked eg. existence of
setFiles)
Sincerely
Meikel
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email