On 27/02/2011, at 3:06 PM, Niclas Hedhman wrote:
> I don't seem to be able to get the "Group" to work for javadocs. I
> have the following task;
>
> task javadocs(type: Javadoc) {
> title = "${rootProject.title} ${version}"
> def apiSources = subprojects.findAll({ project -> project.name != 'runtime'
> })
> source apiSources.collect { project ->
> project.sourceSets.main.allJava
> }
> destinationDir = new File("$buildDir/javadocs")
> // Might need a classpath
> classpath = files(apiSources.collect { project ->
> project.sourceSets.main.compileClasspath
> })
> options.docFilesSubDirs = true
> options.links("http://java.sun.com/j2se/1.6.0/docs/api")
> options.group("Core API", ["org.qi4j.core.api.*"]).
> group("Core SPI", ["org.qi4j.core.spi.*"]).
> group("Core Bootstrap", ["org.qi4j.core.bootstrap.*"])
> }
>
> And I have tried many variants of Map, lists and only a single
> argument, but to no prevail. options.links seems to work, but not
> options.group
>
> Any ideas??
The strings in the second argument to group() are treated as package names, not
patterns. So, you should try something like:
options.group('Core API', ['org.qi4j.core.api'])
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com