cp-tools-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cp-tools-discuss] Re: fastjar


From: Julian Scheid
Subject: [Cp-tools-discuss] Re: fastjar
Date: Sat, 08 Mar 2003 16:04:18 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021126

Brian Jones wrote:
> What is fastjar?

A Jar drop-in that ships with gcc.

address@hidden:/usr/src/gcc-cvs > gcc/fastjar/jar
Usage: gcc/fastjar/jar address@hidden [jar-file] [manifest-file] [-C dir] files 
...
Options
 -c  create new archive
 -t  list table of contents for archive
 -x  extract named (or all) files from archive
 -u  update existing archive
 -V  display version information
 -v  generate verbose output on standard output
 -f  specify archive file name
 -m  include manifest information from specified manifest file
 -0  store only; use no ZIP compression
 -M  Do not create a manifest file for the entries
 -C  change to the specified directory and include the following file
 -E  don't include the files found in a directory
 -@  Read names from stdin
If any file is a directory then it is processed recursively.
The manifest file name and the archive file name needs to be specified
in the same order the 'm' and 'f' flags are specified.

Example 1: to archive two class files into an archive called classes.jar:
     jar cvf classes.jar Foo.class Bar.class
Example 2: use an existing manifest file 'mymanifest' and archive all the
     files in the foo/ directory into 'classes.jar':
     jar cvfm classes.jar mymanifest -C foo/ .







reply via email to

[Prev in Thread] Current Thread [Next in Thread]