Hi,

The AbstractCopyTask and SourceTask types both have a defaultSource property, 
which is used by plugins to specify the default source files for the task. It 
is used for the following tasks:

process*Resources
compile*Java
compile*Groovy
compile*Scala
checkstyle*
codeNarc*

The problem with this approach is that it is difficult to add extra source 
files to the default set. For example:

processResources {
    from 'some/extra/dir'
}

This replaces the default source files, rather than adding the extra directory. 
This is inconsistent with most of the DSL, where a statement like this would 
add the directory to the existing values.

I propose we do away with 'defaultSource' for the above tasks.


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz

Reply via email to