Skip to content

Commit

Permalink
8331077: nroff man page update for jar tool
Browse files Browse the repository at this point in the history
Backport-of: c21672d8c94da6aa613174744ceaa945ca2a474a
  • Loading branch information
TheRealMDoerr committed Jun 3, 2024
1 parent 2144c0e commit e26c5f0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/jdk.jartool/share/man/jar.1
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ created or a non-modular JAR file being updated.
Specifies the location of module dependence for generating the hash.
.TP
\f[V]\[at]\f[R]\f[I]file\f[R]
Reads \f[V]jar\f[R] options and file names from a text file.
Reads \f[V]jar\f[R] options and file names from a text file as if they
were supplied on the command line
.SH OPERATION MODIFIERS VALID ONLY IN CREATE, UPDATE, AND GENERATE-INDEX MODES
.PP
You can use the following options to customize the actions of the create
Expand Down Expand Up @@ -330,11 +331,14 @@ class files from the file \f[V]classes.list\f[R].
.PP
\f[B]Note:\f[R]
.PP
To shorten or simplify the \f[V]jar\f[R] command, you can specify
arguments in a separate text file and pass it to the \f[V]jar\f[R]
command with the at sign (\f[V]\[at]\f[R]) as a prefix.
To shorten or simplify the \f[V]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[V]jar\f[R] command with the at sign (\f[V]\[at]\f[R]) as a prefix.
.RS
.PP
\f[V]jar --create --file my.jar \[at]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 e26c5f0

@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.