I see there is huge changes in source folders managment. Yes, it looks very
nice but my old configuration is not working anymore and I can`t reproduce
it with sourceSets. This was before and working as I want:
resourceDirNames = new LinkedList()
String mainResourcesRootRel = "/main/resources"
if(project.hasProperty('configName')){
if(project.hasProperty('configType')){
resourceDirNames.add
"$mainResourcesRootRel/${configName}/${configType}"
}
resourceDirNames.add "$mainResourcesRootRel/${configName}/default"
}
resourceDirNames.add "$mainResourcesRootRel/default"
Now I`m trying to rewrite like this:
sourceSets {
main {
resources {
srcDir "src/main/resources/default"
srcDir
"src/main/resources/${configName}/default"
}
}
}
The result is wrong. It seems like only first srcDir definition is used and
default folder is still used too.
--
View this message in context:
http://www.nabble.com/new-sourceSets%7B%7D-behaviour-tp25803056p25803056.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email