On Nov 7, 2008, at 6:54 AM, Adam Murdoch wrote:
Hans Dockter wrote:
On Nov 1, 2008, at 10:07 PM, Adam Murdoch wrote
<snip>
Should there be some kind of inheritance going on, where a
project inherits this setting from its parent, and tasks from
their project?
In general I'm not sure if inheritance is a good means to define
commons stuff in multi-project builds. Gradle provides inheritance
for properties and methods amongst build scripts (which would not
enable inheritance for settings stdout capture). But in general my
preferred way of configuring things is for example:
allprojects {
captureStandardOut(LogLevel.INFO)
groovydoc.captureStandardOut(LogLevel.DEBUG)
}
That way you can easily make exceptions for certain projects based
on filters.
Would you prefer an inheritance approach?
Not really for projects. Not fussed. Perhaps tasks could use the
level from their project as a default. Having played with this a
bit, it seems kind of odd that when you set the level on a project,
its doesn't affect the project's tasks.
We should use it as a default. http://jira.codehaus.org/browse/
GRADLE-309
Or perhaps we just need to be able to do something like:
alltasks {
captureStandardOut(LogLevel.INFO)
}
It probably would make sense to add such a alltasks notation although
right now there are probably not that many use cases for it.
- Hans
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email