Generic javadoc command that always generates all javadocs in a given tree?

前端 未结 2 1471
耶瑟儿~
耶瑟儿~ 2021-02-02 12:03

When I have to generate javadocs for a new, unfamiliar project, I find that I spend a long time trying to simply write the correct command, specifying all the packages, all the

相关标签:
2条回答
  • 2021-02-02 12:17

    On Windows you can do it like this:

    Generate file list:

    dir /s /b *.java > file.lst
    

    Generate javadoc:

    javadoc -d outputdir @file.lst
    
    0 讨论(0)
  • 2021-02-02 12:34

    Use find to find all Java source files and then send them to javadoc:

    find . -type f -name "*.java" | xargs javadoc -d outputdir 
    
    0 讨论(0)
提交回复
热议问题