从命令行执行Eclipse生成javadoc [英] Executing the Eclipse generate javadoc from the command line

查看:135
本文介绍了从命令行执行Eclipse生成javadoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一种情况,我想以以下方式生成javadoc。

I have a case where I would like to generate a javadoc in the following manner.


  • 我想为整个项目的公共方法生成Javadoc

  • 我想为单个类的受保护方法生成javadoc。

使用Eclipse中的Generate Javadoc工具非常容易做到这一点,但是有人要求为此情况生成Javadoc命令行或批处理脚本,而不是Eclipse GUI。

This is very easy to do using the Generate Javadoc tool in Eclipse, but it has been requested that Javadoc generation for this case use the command line or batch script instead of the Eclipse GUI.

阅读以下链接后

http://docs.oracle.com/javase/1.5.0/docs/tooldocs/windows/javadoc.html #runningjavadoc

我了解如何从命令行使用javadoc工具,但并没有告诉我如何选择要记录的方法类型,而且看来我也必须列出每个班级。

I understand how I can use the javadoc tool from the command line but it does not tell me how I would select which type of methods to document, and it also appears that I will have to list each class.

我的问题如下,


  • 是否可以运行Eclipse风格的Javadoc从命令行生成工具?如果是这样,我在哪里可以找到如何执行此操作的示例。

  • 如果没有上述方法,是否可以告诉javadoc工具遍历每个软件包并递归地记录其中的类?

  • 有没有一种方法可以告诉javadoc工具哪种类型的方法来记录,公开,受保护,受保护等?

推荐答案

您可以让eclipse生成一个ant构建文件。然后,您可以从命令行使用此ant构建文件。

You can let eclipse generate an ant build file. Then you can use this ant build file from the command line.

这篇关于从命令行执行Eclipse生成javadoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆