Nikita Skvortsov wrote:
>
> What am I doing wrong?
>
sourceSets.all*.allSource.srcDirs*.each { println it }
and
sourceSets.all*.resources.srcDirs*.each { println it }
do work for me (for a single project with Java plugin applied).
However, I can see two other problems with your code:
1. Instead of proj.subprojects, it should be proj.childProjects
2. printProjectSrc() has just one parameter, but you call it with two
arguments
--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Twitter: @pniederw
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Gradle-source-sets-reporting-tp4616128p4616242.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