
You can use the following ant XML to run the JAXB doclet on your code:
Figure 2.3. Ant XML for running the JAXB doclet
<target name="doc-jaxb" depends="jars" description="Run the JAXB doclet"> <javadoc doclet="com.lunatech.doclets.jax.jaxb.JAXBDoclet" docletpath="lib/jax-doclets-0.5.jar"> <package name="com.lunatech.doclets.jax.test.*"/> </javadoc> </target>
You can use the following ant XML to run the JAX-RS doclet on your code:
Figure 2.4. Ant XML for running the JAX-RS doclet
<target name="doc-jaxrs" depends="jars" description="Run the JAXRS doclet"> <javadoc doclet="com.lunatech.doclets.jax.jaxrs.JAXRSDoclet" docletpath="lib/jax-doclets-0.5.jar"> <package name="com.lunatech.doclets.jax.test.*"/> </javadoc> </target>