Bug 159095 - jar does not recognize the "i" command line option
jar does not recognize the "i" command line option
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: java-1.4.2-gcj-compat (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Thomas Fitzsimmons
http://java.sun.com/j2se/1.4.2/docs/t...
: FutureFeature
Depends On:
Blocks: FC4Update
  Show dependency treegraph
 
Reported: 2005-05-29 06:24 EDT by Ville Skyttä
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-03-01 21:11:55 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Ville Skyttä 2005-05-29 06:24:51 EDT
jar from java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp_24rh does not recognize the
"i" option, making it incompatible with for example Sun's jar tool.

  $ jar i foo.jar
  jar: invalid option -- i
  Try `jar --help' for more information.

More info about the "i" option and jar indexes:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jar.html
http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#JAR%20Index

I think might be a good idea to provide the "i" option in the jar tool included
in gcj-compat-devel even if it would be a no-op, with an appropriate warning
message.  That would provide command line compatibility; indexing of jars is an
optional optimization feature not really required by anything, and at best
rarely used.
Comment 1 Thomas Fitzsimmons 2005-05-29 13:17:27 EDT
OK, I'll submit a patch for this to fastjar upstream.
Comment 2 Thomas Fitzsimmons 2006-02-07 11:22:58 EST
I submitted a patch for this upstream that creates a no-op -i option for
compatibility.  I'll close this bug when the fix lands in Rawhide.
Comment 3 Thomas Fitzsimmons 2006-02-08 00:53:02 EST
Patch accepted and committed to gcc HEAD and 4.1 branches.
Comment 4 Thomas Fitzsimmons 2006-03-01 21:11:55 EST
This landed in Rawhide with libgcj-4.1.0-1.  Closing.

Note You need to log in before you can comment on or make changes to this bug.