On Wed, Apr 20, 2011 at 10:50 AM, Eric Berry <[email protected]> wrote:

>
>> This generic "create directory structures from existing sourceSets"
>> behavior was what I was trying to convey, as the other create/init tasks
>> have create/modify build.gradle file functions followed by a create
>> directory structures operation.
>>
>
> I really like this idea. :) It should be very easy to implement too. I'll
> add it to the base Templates plugin.
>

I'm having some troubles with this one. Doesn't seem to be an easy way to
iterate over the various sourceSets. I tried
sourceSets.each { srcSet ->
   srcSet.each { println it }
}

And
sourceSets.each { srcSet ->
   sourceSets."${srcSet.name}".each { println it }
}

But all that does is print out the main and test source sets. I can't seem
to get down to where I can call srcDirs.

Any ideas on how I can go about doing this?

Also, would anyone have any objections to me adding this plugin to the wiki
page?
http://wiki.gradle.org/display/GRADLE/Plugins

Thanks.
Eric
-- 
Learn from the past. Live in the present. Plan for the future.
Blog: http://eric-berry.blogspot.com
jEdit <http://www.jedit.org> - Programmer's Text Editor
Bazaar <http://bazaar.canonical.com> - Version Control for Humans

Reply via email to