Skip to content

Commit

Permalink
8331077: nroff man page update for jar tool
Browse files Browse the repository at this point in the history
Reviewed-by: rschmelter
Backport-of: c21672d8c94da6aa613174744ceaa945ca2a474a
  • Loading branch information
MBaesken committed Jul 30, 2024
1 parent f4e8194 commit c32a56f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/jdk.jartool/share/man/jar.1
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ Specifies the location of module dependence for generating the hash.
.RE
.TP
.B \f[CB]\@\f[R]\f[I]file\f[R]
Reads \f[CB]jar\f[R] options and file names from a text file.
Reads \f[CB]jar\f[R] options and file names from a text file as if they
were supplied on the command line
.RS
.RE
.SH OPERATION MODIFIERS VALID ONLY IN CREATE, UPDATE, AND
Expand Down Expand Up @@ -339,8 +340,15 @@ class files from the file \f[CB]classes.list\f[R].
To shorten or simplify the \f[CB]jar\f[R] command, you can specify
arguments in a separate text file and pass it to the \f[CB]jar\f[R]
command with the at sign (\f[CB]\@\f[R]) as a prefix.

To shorten or simplify the \f[CB]jar\f[R] command, you can provide an arg
file that lists the files to include in the JAR file and pass it to the
\f[CB]jar\f[R] command with the at sign (\f[CB]\@\f[R]) as a prefix.
.RS
.PP
\f[CB]jar\ \-\-create\ \-\-file\ my.jar\ \@classes.list\f[R]
.RE
.PP
If one or more entries in the arg file cannot be found then the jar
command fails without creating the JAR file.
.RE

1 comment on commit c32a56f

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.