On 22/03/10 1:50 AM, Geronimo M. H. wrote:
Hello,
I'd like to create a single javadoc for all subprojects of a multiproject
build.
When I call 'gradle javadoc', gradle creates an apidoc for each subproject.
So I created a top-level task:
task apidocs(type: Javadoc) {
title = "my test"
classpath = ...
optionsFile = file('jdoc.options')
include 'my.stuff/**'
if (!optionsFile.exists()) {
...
}
}
The creation of the optionsFile works so far, as well as collecting the
sources ...
... but the javadoc get's never executed.
You haven't specified any source files. The task won't do anything if
there's no matching source files. You could do something like:
task apidocs(type: Javadoc) {
// Add the java source from all subprojects
subprojects.each {
source it.sourceSets.main.allJava
}
....
}
So how can I create a javadoc-task for the root-project only, which does not
execute the javadoc-task at the subprojects, but does what I like it to do?
Pretty much what you've done. You (probably) just need some source files.
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email