home.


Tagged: ant-javadoc


ant-javadoc

These targets in your build.xml will one generate the javadoc in a directory and two put it in a jar for you.

    <target name="doc">
      <javadoc sourcepath="${src.dir}" destdir="${doc.dir}" />
    </target>

    <target name="doc-jar" depends="doc">
      <mkdir dir="${jar.dir}" />
      <jar destfile="${jar.dir}/${jardoc.name}" basedir="${doc.dir}">
        <manifest>
        </manifest>
      </jar>
    </target>
ant ant-javadoc

Page 1 of 1