Menu

#6 Update (-u) broken

bug
open
nobody
None
5
2000-06-30
2000-06-30
No

Using -u gives a bad file descriptor error.

The following won't work in 0.90:

touch file1
touch file2
fastjar -cvf bar.jar file1
fastjar -uvf bar.jar file2

The last line gives the result:

adding: META-INF/ (in=0) (out=0) (stored 0%)
adding: META-INF/MANIFEST.MF (in=56) (out=56) (stored 0%)
adding: file2 write: Bad file descriptor

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Bug changed its face: the example above wont add file1 to
    the archive in 0.93. Bug persists - update does not work.

     
  • rzr

    rzr - 2005-07-20

    Logged In: YES
    user_id=95924

    is -u option support planned someday ?
    what are the main difficulties to add this ?

     
  • rzr

    rzr - 2005-07-20

    Logged In: YES
    user_id=95924

    it seems that debian unstable support -u (using a patch
    maybe) , not cygwin :

    Debian ;

    $ fastjar --ver
    jar (fastjar) 0.92-gcc-4.0

    $ fastjar -u
    fastjar: `-u' mode requires a file name

    cygwin :

    $ jar --version
    jar (fastjar) 0.92-gcc

    $ jar -u
    jar: `-u' mode unimplemented.

    is there a link for cygwin package like debian ones such as
    http://packages.debian.org/unstable/devel/fastjar
     
  • andypep

    andypep - 2006-07-22

    Logged In: YES
    user_id=1428810

    Using Suse 10.0, and the gcj, gij and fastjar supplied
    therewith.

    Was looking at using gcj etc to replace Sun java on a
    simple java program I have. Part of the build was to create
    a jar file, and then add the manifest information
    afterwards, and fastjar failed to create an acceptable .jar
    file by

    fastjar -ufm <jarfile> <manifestfile>

    Have a simple self-contained script to demonstrate the
    problem, which I'll attach when I've figured how to.

    Workaround was to unpack the archive into a separate
    directory and repack it with the manifest info.

     

Log in to post a comment.

MongoDB Logo MongoDB