Hello,
I seem to be having difficulties adding more then one file to a jar archive using the command line utility.
the man page says this at the end of the parameter descriptions:
Quote:
All remaining options are considered to be names of files.
|
So I figured I would be able to just list the different files I want to add. I've tried a couple different ways that I know of to do this, but they all result in either an error, or only adding the first file.
Code:
jar -cvf "$TMPDIR/chrome/ff_kiox.jar" -C "$PWD/chrome/" ./content ./skin
but I get :
Code:
adding: META-INF/ (in=0) (out=0) (stored 0%)
adding: META-INF/MANIFEST.MF (in=56) (out=56) (stored 0%)
adding: content/ (in=0) (out=0) (stored 0%)
<snip>...
skin: No such file or directory
Error adding ./skin to jar archive!
and the jar archive only contains the first listed directory (if I switch the order, skin will be in there, but content will error out).
I also tried:
Code:
jar -cvf "$TMPDIR/chrome/ff_kiox.jar" -C "$PWD/chrome/" ./{content,skin}
Same thing.
Any suggestions?
Thanks for the help!
...drkstr