How to generate Javadoc from command line

前端 未结 8 966
太阳男子
太阳男子 2020-12-04 16:33

Can anybody show me how to generate Javadoc from command line?

My project contains the package com.test and I want to put the generated documentation in

相关标签:
8条回答
  • 2020-12-04 17:01

    For example if I had an application source code structure that looked like this:

    • C:\b2b\com\steve\util\
    • C:\b2b\com\steve\app\
    • C:\b2b\com\steve\gui\

    Then I would do:

    javadoc -d "C:\docs" -sourcepath "C:\b2b" -subpackages com
    

    And that should create javadocs for source code of the com package, and all subpackages (recursively), found inside the "C:\b2b" directory.

    0 讨论(0)
  • 2020-12-04 17:01

    Link to JavaDoc

    I believe this will surely help you.

    javadoc -d C:/javadoc/test com.mypackage
    
    0 讨论(0)
提交回复
热议问题