How does one set up JavaDoc DocCheck as an Eclipse plugin?

感情迁移 提交于 2019-12-09 12:31:39

问题


I have recently started using DocCheck for checking the validity of JavaDoc's in code files.

Is there some way to set DocCheck up as an eclipse plugin?


回答1:


This was deemed a great idea back in 2002, and still asked for in 2004...

But since then, pretty much all the features of the Sun Doc Check Doclet (experimental code developed originally for internal use at Sun and released to the developer community for use as-is) is pretty much covered by the 'Java Compiler / Javadoc' section of the Java project properties (albeit without the HTML rapports outputs)

If you do want to have the DocCheck reports, I would recommend making a custom Project Builder, like this one (not related to DocCheck at all, just here to give you an example)


(source: bell-labs.com)

See also FAQ How do I implement an incremental project builder? or FAQ How do I create an external tool builder?

I would also recommend you set up this custom builder calling DocCheck only when doing a fill build (IncrementalProjectBuilder.FULL_BUILD), in order to avoid to wait each time you save a file.

End users can add external tool builders by selecting a project in the Navigator, choosing Properties, and then going to the Builders page.
On the Build Options tab, you can specify whether the builder should run on autobuild, manual build, or on Clean.
In most cases, running external tool builders during auto-builds is too disruptive because they are too long running.



来源:https://stackoverflow.com/questions/1073531/how-does-one-set-up-javadoc-doccheck-as-an-eclipse-plugin

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