jdk/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties
changeset 36511 9d0388c6b336
parent 29914 48393dc87f88
child 37779 7c84df693837
--- a/jdk/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties	Tue Mar 15 13:48:26 2016 -0700
+++ b/jdk/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties	Thu Mar 17 19:04:16 2016 +0000
@@ -23,10 +23,18 @@
 # questions.
 #
 
+error.multiple.main.operations=\
+     You may not specify more than one '-cuxti' options
 error.cant.open=\
-     can''t open: {0} 
+     can''t open: {0}
 error.illegal.option=\
         Illegal option: {0}
+error.unrecognized.option=\
+    unrecognized option : {0}
+error.missing.arg=\
+     option {0} requires an argument
+error.bad.file.arg=\
+     Error parsing file arguments
 error.bad.option=\
         One of options -{ctxu} must be specified.
 error.bad.cflag=\
@@ -46,10 +54,24 @@
         incorrect length while processing: {0}
 error.create.tempfile=\
         Could not create a temporary file
+error.hash.dep=\
+        Hashing module {0} dependences, unable to find module {1} on module path
+error.module.options.without.info=\
+        One of --module-version or --hash-dependencies without module-info.class
+error.unexpected.module-info=\
+        Unexpected module descriptor {0}
+error.module.descriptor.not.found=\
+        Module descriptor not found
+error.missing.provider=\
+        Service provider not found: {0}
 out.added.manifest=\
         added manifest
+out.added.module-info=\
+        added module-info.class
 out.update.manifest=\
         updated manifest
+out.update.module-info=\
+        updated module-info.class
 out.ignore.entry=\
         ignoring entry {0}
 out.adding=\
@@ -67,7 +89,9 @@
 out.size=\
         (in = {0}) (out= {1})
 
-usage=\
+usage.compat=\
+\Compatibility Interface:\
+\n\
 Usage: jar {ctxui}[vfmn0PMe] [jar-file] [manifest-file] [entry-point] [-C dir] files ...\n\
 Options:\n\
 \ \   -c  create new archive\n\
@@ -93,3 +117,91 @@
 Example 2: use an existing manifest file 'mymanifest' and archive all the\n\
 \ \          files in the foo/ directory into 'classes.jar': \n\
 \ \      jar cvfm classes.jar mymanifest -C foo/ .\n
+
+main.usage.summary=\
+jar: You must specify one of -ctxui options.
+main.usage.summary.try=\
+Try `jar --help' for more information.
+
+main.help.preopt=\
+Usage: jar [OPTION...] [-C dir] files ...\n\
+jar creates an archive for classes and resources, and can manipulate or\n\
+restore individual classes or resources from an archive.\n\
+\n\
+\ Examples:\n\
+\ # Create an archive called classes.jar with two class files:\n\
+\ jar --create --file classes.jar Foo.class Bar.class\n\
+\ # Create an archive using an existing manifest, with all the files in foo/:\n\
+\ jar --create --file classes.jar --manifest mymanifest -C foo/ .\n\
+\ # Create a modular jar archive, where the module descriptor is located in\n\
+\ # classes/module-info.class:\n\
+\ jar --create --file foo.jar --main-class com.foo.Main --module-version 1.0\n\
+\     -C foo/ classes resources\n\
+\ # Update an existing non-modular jar to a modular jar:\n\
+\ jar --update --file foo.jar --main-class com.foo.Main --module-version 1.0\n\
+\     -C foo/ module-info.class
+main.help.opt.main=\
+\ Main operation mode:\n
+main.help.opt.main.create=\
+\  -c, --create               Create the archive
+main.help.opt.main.generate-index=\
+\  -i, --generate-index=FILE  Generate index information for the specified jar\n\
+\                             archives
+main.help.opt.main.list=\
+\  -t, --list                 List the table of contents for the archive
+main.help.opt.main.update=\
+\  -u, --update               Update an existing jar archive
+main.help.opt.main.extract=\
+\  -x, --extract              Extract named (or all) files from the archive
+main.help.opt.main.print-module-descriptor=\
+\  -p, --print-module-descriptor  Print the module descriptor
+main.help.opt.any=\
+\ Operation modifiers valid in any mode:\n\
+\n\
+\  -C DIR                     Change to the specified directory and include the\n\
+\                             following file
+main.help.opt.any.file=\
+\  -f, --file=FILE            The archive file name
+main.help.opt.any.verbose=\
+\  -v, --verbose              Generate verbose output on standard output
+main.help.opt.create.update=\
+\ Operation modifiers valid only in create and update mode:\n
+main.help.opt.create.update.main-class=\
+\  -e, --main-class=CLASSNAME The application entry point for stand-alone\n\
+\                             applications bundled into a modular, or executable,\n\
+\                             jar archive
+main.help.opt.create.update.manifest=\
+\  -m, --manifest=FILE        Include the manifest information from the given\n\
+\                             manifest file
+main.help.opt.create.update.no-manifest=\
+\  -M, --no-manifest          Do not create a manifest file for the entries
+main.help.opt.create.update.module-version=\
+\      --module-version=VERSION    The module version, when creating a modular\n\
+\                             jar, or updating a non-modular jar
+main.help.opt.create.update.hash-dependencies=\
+\      --hash-dependencies=PATTERN  Compute and record the hashes of module\n\
+\                             dependencies matched by the given pattern, when\n\
+\                             creating a modular jar, or updating a non-modular\n\
+\                             jar
+main.help.opt.create.update.modulepath=\
+\      --modulepath           Location of module dependence for generating
+\                             the hash
+main.help.opt.create.update.index=\
+\ Operation modifiers valid only in create, update, and generate-index mode:\n
+main.help.opt.create.update.index.no-compress=\
+\  -0, --no-compress          Store only; use no ZIP compression
+main.help.opt.other=\
+\ Other options:\n
+main.help.opt.other.help=\
+\  -?, --help[:compat]        Give this, or optionally the compatibility, help
+main.help.opt.other.version=\
+\      --version              Print program version
+main.help.postopt=\
+\ An archive is a modular jar if a module descriptor, 'module-info.class', is\n\
+\ located in the root of the given directories, or the root of the jar archive\n\
+\ itself. The following operations are only valid when creating a modular jar,\n\
+\ or updating an existing non-modular jar: '--module-version',\n\
+\ '--hash-dependencies', and '--modulepath'.\n\
+\n\
+\ Mandatory or optional arguments to long options are also mandatory or optional\n\
+\ for any corresponding short options.
\ No newline at end of file