> at lease this code be available as a ready made command in all plugins!

+1

maybe as a rule?

> task "create-dirs" << {
>   sourceSets.all*.java.srcDirs*.each { it.mkdirs() }
>   sourceSets.all*.resources.srcDirs*.each { it.mkdirs() }
> }

I guess you have to remove the stars or "each" is not applied to the collection 
as you
probably intend.

I would also rather avoid the slash in the task name and use camelCase
to allow abbreviations like "gradle msd" for "gradle makeSourceDirs"

Well, and the list of "java" and "resources" should probably be constructed from
all know configurations such that "groovy" and the likes are automatically 
added...

cheers
Dierk


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to