The context is the Gant build and specifically the attributes of the
groovydoc task.

The Gant task is structured as a quartet of projects all using the same
source.  The subprojects allow for building with the four different
families of Groovy.  All the common specifications are in the
subprojects section, it all seems to work fine.  The problem I have is
that Groovy 1.5.8 version of GroovyDoc doesn't understand the doctitle
attribute whereas all later versions do.  I want to avoid replicating
the specifications I just want to have something like:

    subprojects {
        . . .
          groovydoc {
            packageNames = [ 'gant.*' , 'org.codehaus.gant.*' ] // Why have to 
have this when not needed for javadoc?
            overview = 'overview.html'
            includePrivate = false
            encoding = 'UTF-8'
            use = true
            author = 'true'
            version = 'true'
            windowTitle = packageTitle
            if ( subproject != 'gant_groovy1.5' ) docTitle = packageTitle
            header = packageTitle
            footer = copyrightString
          }
        }
        
The question is how to properly refer to the subproject name in the subproject 
specification.

Thanks.

-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: [email protected]
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:[email protected]
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to