On 11/12/09 10:40 PM, Russel Winder wrote:
On Thu, 2009-12-10 at 21:40 +0000, Russel Winder wrote:
Levi,
name doesn't work for me as I have a sub-block within the subproject
block, but project.name works nicely for me. Thanks muchly.
Except that it doesn't work -- at least not as I expected. I suspect
though this is because Gradle is working correctly!
The actual example I had was:
subprojects {
. . .
groovydoc {
. . .
if ( project.name != 'gant_gradle1.5' ) { docTitle =
'blah' }
. . .
}
. . .
}
However, when it comes to execute :gant_groovy1.5:groovydoc, docTitle is
still defined! I think this must be because there is a cumulative
aspect to definitions used in this multiproject framework.
docTitle has a default value, so you need to set it to an empty string
if you don't want a title.
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email