随笔-109  评论-187  文章-25  trackbacks-0
 

其实生成JAVADOC很简单,在DOS下用命令而已,生成JAVADOC的目的有2个:

 1:生成DOC

2:检验一下你写的代码时候规范

步骤:

wsad-->window->preference->java->javadoc-->javadoc command-->select the javadoc.exe

java perspective 下面

wsad-->project-->Generate Javadoc-->select package

  next-->next-->input the argument in the javaoptions

ok!你就可以看到生成的文档了,要是CONSOLE有红色的出现,证明你写的程序不规范了,需要修改以下,调整以下,具体参数可以参考JAVADOC命令的参数行:

如下

javadoc: No packages or classes specified.
usage: javadoc [options] [packagenames] [sourcefiles] [classnames] [@files]
-overview           Read overview documentation from HTML file
-public                   Show only public classes and members
-protected                Show protected/public classes and members (default)
-package                  Show package/protected/public classes and members
-private                  Show all classes and members
-help                     Display command line options
-doclet            Generate output via alternate doclet
-docletpath         Specify where to find doclet class files
-1.1                      Generate output using JDK 1.1 emulating doclet
-sourcepath     Specify where to find source files
-classpath      Specify where to find user class files
-bootclasspath Override location of class files loaded
                          by the bootstrap class loader
-extdirs         Override location of installed extensions
-verbose                  Output messages about what Javadoc is doing
-locale             Locale to be used, e.g. en_US or en_US_WIN
-encoding           Source file encoding name
-J                  Pass directly to the runtime system

Provided by Standard doclet:
-d             Destination directory for output files
-use                      Create class and package usage pages
-version                  Include @version paragraphs
-author                   Include @author paragraphs
-splitindex               Split index into one file per letter
-windowtitle        Browser window title for the documenation
-doctitle      Include title for the package index(first) page
-header        Include header text for each page
-footer        Include footer text for each page
-bottom        Include bottom text for each page
-link                Create links to javadoc output at
-linkoffline Link to docs at using package list at
-group :.. Group specified packages together in overview page
-nodeprecated             Do not include @deprecated information
-nosince                  Do not include @since information
-nodeprecatedlist         Do not generate deprecated list
-notree                   Do not generate class hierarchy
-noindex                  Do not generate index
-nohelp                   Do not generate help link
-nonavbar                 Do not generate navigation bar
-serialwarn               Generate warning about @serial tag
-charset         Charset for cross-platform viewing of generated docu
ntation.
-helpfile           Include file that help link links to
-stylesheetfile     File to change style of the generated documentation
-docencoding        Output encoding name

posted on 2006-04-13 08:56 小小程序程序员混口饭吃 阅读(1764) 评论(0)  编辑  收藏 所属分类: java

只有注册用户登录后才能发表评论。


网站导航: