Custom index.html javadoc page?

百般思念 提交于 2019-12-19 07:39:11

问题


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


回答1:


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.




回答2:


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

<javadoc destdir="javadoc" overview="src/overview.html">...</javadoc>


来源:https://stackoverflow.com/questions/10381649/custom-index-html-javadoc-page

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!