Re: [gradle-user] Re: Gradle Archetype like Maven
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
Re: [gradle-user] Re: Gradle Archetype like Maven
On Thu, Jan 6, 2011 at 08:37, Dierk König dierk.koe...@canoo.com wrote: 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 This should really be in Gradle 1.0 -- Jason Porter http://lightguard-jp.blogspot.com http://twitter.com/lightguardjp Software Engineer Open Source Advocate PGP key id: 926CCFF5 PGP key available at: keyserver.net, pgp.mit.edu - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[gradle-user] Re: Gradle Archetype like Maven
at lease this code be available as a ready made command in all plugins! task create-dirs { sourceSets.all*.java.srcDirs*.each { it.mkdirs() } sourceSets.all*.resources.srcDirs*.each { it.mkdirs() } } -- View this message in context: http://gradle.1045684.n5.nabble.com/Gradle-Archetype-like-Maven-tp3302964p3329996.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