On 24/04/10 11:06 PM, alarmnummer wrote:
How can the javadoc of multiple subprojects be aggregated? I have found some
examples that create javadoc in each project individually, but haven't found
a solution to aggregate javadoc so it can be placed on a website.

You can add an instance of the Javadoc task. Something like:

def projects = // the set of projects to aggregate
task javadoc(type: Javadoc) {
    source projects.collect { project -> project.sourceSets.main.allJava }
classpath = files(projects.collect {project -> project.sourceSets.main.compileClasspath })
    destinationDir = file('build/javadoc')
}

Have a look at the API of the Javadoc task for more options: http://gradle.org/0.9-preview-1/docs/javadoc/org/gradle/api/tasks/javadoc/Javadoc.html


--
Adam Murdoch
Gradle Developer
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to