1 \input texinfo @c -*-texinfo-*-
2 @setfilename fastjar.info
3 @settitle Guide to GNU jar utilites
5 @c Note: When reading this manual you'll find lots of strange
6 @c circumlocutions like ``compiler for the Java language''.
7 @c This is necessary due to Sun's restrictions on the use of
10 @c When this manual is copyrighted.
11 @set copyrights-fastjar 2002
13 @include gcc-common.texi
16 @set which-gcj GCC-@value{version-GCC}
20 @dircategory Programming
22 * fastjar: (fastjar). GNU jar utilities
25 @dircategory Individual utilities
27 * jar: (fastjar)Invoking jar.
28 An archive tool for Java archives
29 * grepjar: (fastjar)Invoking grepjar.
30 Search files in a jar file for a pattern
34 @c man begin COPYRIGHT
35 Copyright (C) @value{copyrights-fastjar} Matthias Klose
37 Permission is granted to copy, distribute and/or modify this document
38 under the terms of the GNU General Public License as published by the
39 Free Software Foundation; either version 2, or (at your option) any
40 later version. A copy of the license is included in the
42 section entitled ``GNU General Public License''.
44 @c man begin COPYRIGHT
51 @title GNU jar utilites
55 @vskip 0pt plus 1filll
56 Copyright @copyright{} @value{copyrights-gcj} Matthias Klose
58 For the @value{which-gcj} Version*
60 Published by the Free Software Foundation @*
61 59 Temple Place - Suite 330@*
62 Boston, MA 02111-1307, USA@*
64 Permission is granted to copy, distribute and/or modify this document
65 under the terms of the GNU General Public License as published by the
66 Free Software Foundation; either version 2, or (at your option) any
67 later version. A copy of the license is included in the
68 section entitled ``GNU General Public License''.
77 This manual describes how to use @command{jar} and @command{grepjar}.
80 * Invoking jar:: Options supported by @command{jar}
81 * Invoking grepjar:: Options supported by @command{grepjar}
82 * Copying:: The GNU General Public License
88 @c man title jar archive tool for Java archives
90 @c man begin DESCRIPTION jar
92 @code{fastjar} is an implementation of Sun's jar utility that comes with
93 the JDK, written entirely in C, and runs in a fraction of the time while
94 being feature compatible.
96 If any file is a directory then it is processed recursively. The
97 manifest file name and the archive file name needs to be specified in
98 the same order the @option{-m} and @option{-f} flags are specified.
103 @c man begin SYNOPSIS jar
104 jar @option{-ctxu} [@option{OPTIONS}] [@var{jar-file}] [@var{manifest-file}] [@option{-C} @var{dir}] @var{files}@dots{}
106 @c man begin SEEALSO jar
107 gcj(1), gij(1), grepjar(1)
108 and the Info entry for @file{gcj}.
112 @c man begin OPTIONS jar
114 Exactly one of the following actions must be specified:
122 List table of contents for archive.
125 Extract named (or all) files from archive.
128 Update existing archive. This option is disabled due to bugs (currently
129 fails with exit status 1 and does nothing).
133 The following parameters are optional:
138 Read the names of the files to add to the archive from stdin. This
139 option is supported only in combination with @option{-c} or @option{-u}.
140 Non standard option added in the GCC version.
142 @item -C @var{directory}
143 Change to the @var{directory} and include the following file.
146 Prevent fastjar from reading the content of a directory when specifying
147 one (and instead relying on the provided list of files to populate the
148 archive with regard to the directory entry). Non standard option added
152 Do not create a manifest file for the entries.
155 Store only; use no ZIP compression.
159 Display version information.
161 @item -f @var{archive}
162 Specify archive file name.
164 @item -m @var{manifest}
165 Include manifest information from specified @var{manifest} file.
168 Generate verbose output on standard output.
172 All remaining options are considered to be names of files.
176 @node Invoking grepjar
177 @chapter Invoking grepjar
179 @c man title grepjar search files in a jar file for a pattern
181 @c man begin DESCRIPTION grepjar
183 The @code{grepjar} program can be used to search files in a jar file for
189 @c man begin SYNOPSIS grepjar
190 grepjar [@option{-bcinsw}] @option{-e} @var{PATTERN} | @var{PATTERN} @var{files}@dots{}
192 @c man begin SEEALSO grepjar
193 jar(1), gcj(1), gij(1), gfdl(7) and the Info entry for @file{gcj}.
197 @c man begin OPTIONS grepjar
201 Print byte offset of match.
204 Print number of matches.
207 Compare case-insensitively.
210 Print line number of each match.
213 Suppress error messages.
216 Force @var{PATTERN} to match only whole words.
218 @item -e @var{PATTERN}
219 Use @var{PATTERN} as regular expression.
222 Print help, then exit.
226 Print version number, then exit.