This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fastjar/22012] fastjar -C gets confused with more than one argument
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2005 01:38:29 -0000
- Subject: [Bug fastjar/22012] fastjar -C gets confused with more than one argument
- References: <20050610214806.22012.debian-gcc@lists.debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tromey at gcc dot gnu dot org 2005-06-16 01:38 -------
This is actually how jar is supposed to work.
It is silly, but afaics the JDK jar works the same way.
I'm closing the PR for this reason.
FWIW I had to add another argument and I get this:
opsy. jar -cvf qq.jar -C tmp a b
adding: META-INF/ (in=0) (out=0) (stored 0%)
adding: META-INF/MANIFEST.MF (in=56) (out=56) (stored 0%)
adding: a/ (in=0) (out=0) (stored 0%)
adding: a/a (in=0) (out=2) (deflated -2147483648%)
b: No such file or directory
Error adding b to jar archive!
and here it is working:
opsy. jar -cvf qq.jar -C tmp a -C tmp b
adding: META-INF/ (in=0) (out=0) (stored 0%)
adding: META-INF/MANIFEST.MF (in=56) (out=56) (stored 0%)
adding: a/ (in=0) (out=0) (stored 0%)
adding: a/a (in=0) (out=2) (deflated -2147483648%)
adding: b/ (in=0) (out=0) (stored 0%)
adding: b/b (in=0) (out=2) (deflated -2147483648%)
Total:
------
(in = 45) (out = 605) (deflated -1244%)
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22012