Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom index.html javadoc page?

Tags:

java

javadoc

ant

I am running javadoc with ant task:

<target name="javadoc"  description="create javadoc">
    <delete dir="javadoc" />
    <mkdir dir="javadoc" />
    <javadoc destdir="javadoc">
        <fileset dir="src/main/java" includes="sk/**" />
    </javadoc>
</target>

I'd like to change default index.html page for providing short user guide. I can alter index.html copy it to other place and rewrite it after ant task for javadoc is complete, but that seems little stupid. Is there more common way to achieve so? Thanks

like image 414
Xorty Avatar asked Apr 30 '12 09:04

Xorty


2 Answers

You're looking for the -overview option of javadoc. See http://docs.oracle.com/javase/6/docs/technotes/tools/windows/javadoc.html#overviewcomment for details.

like image 54
JB Nizet Avatar answered Sep 30 '22 14:09

JB Nizet


In Ant, you need to use the overview attribute like so:

<javadoc destdir="javadoc" overview="src/overview.html">...</javadoc>
like image 23
z0r Avatar answered Sep 30 '22 13:09

z0r