Hi,
The idea of a findProject(String, Action) method is to support partial builds,
where subprojects may not be part of the build for a particular invocation.
This is usually done with partial checkouts or some contextual configuration in
settings.gradle.
To do this in a build script looks like this…
def subproject = findProject(":foo")
if (subproject) {
configure(subproject) {
}
}
Which would be replaced with:
findProject(":foo") {
}
The find* aspect grates a bit, but I'm proposing it on the grounds that using
find* is an established pattern in our API for getting something that might not
be there, and that's ok. Combine this with the common pattern of configuration
closures/actions and I don't have a problem with the name.
--
Luke Daley
Principal Engineer, Gradleware
http://gradleware.com
Join me at the Gradle Summit 2013, June 13th and 14th in Santa Clara, CA:
http://www.gradlesummit.com
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email