当前位置: 技术问答>java相关
请大家讲一下jar,javadoc命令的使用
来源: 互联网 发布时间:2015-09-05
本文导语: 主要是参数的使用问题 | jar: 用法:jar {ctxu}[vfm0M] [jar-文件] [manifest-文件] [-C 目录] 文件名 ... 选项: -c 创建新的存档 -t 列出存档内容的列表 -x 展开存档中的命名...
主要是参数的使用问题
|
jar:
用法:jar {ctxu}[vfm0M] [jar-文件] [manifest-文件] [-C 目录] 文件名 ...
选项:
-c 创建新的存档
-t 列出存档内容的列表
-x 展开存档中的命名的(或所有的〕文件
-u 更新已存在的存档
-v 生成详细输出到标准输出上
-f 指定存档文件名
-m 包含来自标明文件的标明信息
-0 仅限存储方式;使用非 ZIP 压缩格式
-M 不生成所有项的清单(manifest〕文件
-i 为指定的 jar 文件产生索引信息
-C 改变到指定的目录,并且包含参数
如果指定的文件都是目录,将会使用递归方式加以处理。
必须以指定 'm' 和 'f' 选项的顺序,指定清单
〔manifest〕文件名和存档文件名。
示例1:将两个 class 文件保存到名称为 'classes.jar' 的存档文件中:
jar cvf classes.jar Foo.class Bar.class
示例2:使用现有的清单(manifest)文件 'mymanifest',将 foo/ 目录
下的所有文件保存到名称为 'classes.jar' 的存档文件中:
jar cvfm classes.jar mymanifest -C foo/ .
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 docume
ntation.
-helpfile Include file that help link links to
-stylesheetfile File to change style of the generated documentation
-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 docume
ntation.
-helpfile Include file that help link links to
-stylesheetfile File to change style of the generated documentation
用法:jar {ctxu}[vfm0M] [jar-文件] [manifest-文件] [-C 目录] 文件名 ...
选项:
-c 创建新的存档
-t 列出存档内容的列表
-x 展开存档中的命名的(或所有的〕文件
-u 更新已存在的存档
-v 生成详细输出到标准输出上
-f 指定存档文件名
-m 包含来自标明文件的标明信息
-0 仅限存储方式;使用非 ZIP 压缩格式
-M 不生成所有项的清单(manifest〕文件
-i 为指定的 jar 文件产生索引信息
-C 改变到指定的目录,并且包含参数
如果指定的文件都是目录,将会使用递归方式加以处理。
必须以指定 'm' 和 'f' 选项的顺序,指定清单
〔manifest〕文件名和存档文件名。
示例1:将两个 class 文件保存到名称为 'classes.jar' 的存档文件中:
jar cvf classes.jar Foo.class Bar.class
示例2:使用现有的清单(manifest)文件 'mymanifest',将 foo/ 目录
下的所有文件保存到名称为 'classes.jar' 的存档文件中:
jar cvfm classes.jar mymanifest -C foo/ .
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 docume
ntation.
-helpfile Include file that help link links to
-stylesheetfile File to change style of the generated documentation
-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 docume
ntation.
-helpfile Include file that help link links to
-stylesheetfile File to change style of the generated documentation
|
来晚了,呵呵,帮你UP吧。
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。