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

前端 未结 2 1504
耶瑟儿~
耶瑟儿~ 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:34

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

    find . -type f -name "*.java" | xargs javadoc -d outputdir 
    

提交回复
热议问题