I am attempting to run a tool called jax-doclet to provide documentation of my
REST service endpoints. To do this, I have the following:
configurations {
jaxDoclet { extendsFrom compile }
}
dependencies {
compile group: springFrameworkGroup, name: "spring-web", version:
springFrameworkVersion
.
.
.
jaxDoclet group: "com.lunatech.jax-doclets", name: "parent", version: "0.8.1"
}
task generateRestApiDocs(type: Javadoc) {
taskClasspath = classpath + configurations.jaxDoclet
ant.javadoc(classpathref: taskClasspath, sourcepath: source, destdir:
reportsDirName + "/rest-api-docs", docletpathref: taskClasspath) {
doclet(name: "com.lunatech.doclets.jax.jaxrs.JAXRSDoclet") {
param name:"-jaxrscontext", value:"http://localhost:8080/" + webContext
}
}
}
When I execute the task, I get "Cause: No source files and no packages have
been specified."
First of all, have I set the classpath correctly? I basically want it to be the
project classpath and the jax-doclet jar.
Second, how do I reference the source path. I have gone over the docs
thoroughly, and everything I try has failed.
Any insight is appreciated.
Thanks.