隨筆-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 小小程序程序員混口飯吃 閱讀(1776) 評論(0)  編輯  收藏 所屬分類: java
          主站蜘蛛池模板: 宁蒗| 科技| 花莲县| 盘锦市| 许昌县| 济阳县| 凭祥市| 莱阳市| 巍山| 广德县| 本溪市| 吕梁市| 贞丰县| 新津县| 文成县| 舒城县| 茌平县| 清新县| 蒲江县| 平潭县| 吉林省| 南岸区| 昔阳县| 新野县| 山西省| 陆河县| 白山市| 巴东县| 宜都市| 平昌县| 镇平县| 陇川县| 麻阳| 星子县| 马龙县| 榕江县| 城固县| 德化县| 阳春市| 桂东县| 清丰县|