2. Running the jax-doclets

The jax-doclets are run by JavaDoc either as standalone or via ant.

Since the JAX-RS supports links to JAXB documentation, you should first run the JAXB doclet, then the JAX-RS doclet using the -link parameter.

2.1 Running jax-doclets in standalone

JAXB doclet

You can use the following command to run the JAXB doclet on your code:

Figure 2.1. Running the JAXB doclet

javadoc -doclet com.lunatech.doclets.jax.jaxb.JAXBDoclet -docletpath lib/jax-doclets-0.5.jar com.lunatech.doclets.jax.test

JAX-RS doclet

You can use the following command to run the JAX-RS doclet on your code:

Figure 2.2. Running the JAX-RS doclet

javadoc -doclet com.lunatech.doclets.jax.jaxrs.JAXRSDoclet -docletpath lib/jax-doclets-0.5.jar com.lunatech.doclets.jax.test