Menu

#1 Autoupdater without log4j (only 100kb!)=

open
nobody
None
5
2003-09-26
2003-09-26
No

I needed an autoupdater for my SF project so I
searched the net and found this one. Althought it
needed like 600kb since it uses log4j I took a closer look.

And I've patched both autoupdater + armi to not use
log4j any longer so I can provide my users with a 100kb
download which will then download all the rest.

I didn't care much about good coding style though, I
just removed the log4j calls and added the output to
system.err.out, but it works and if someone needs it,
I've attached the code..

Discussion

  • Helge Richter

    Helge Richter - 2003-09-27

    armi + autoupdater code without need for log4j

     
  • Helge Richter

    Helge Richter - 2003-09-27

    Logged In: YES
    user_id=168906

    Ok for some reason it didn't compile everything here so that
    version doesnt work. I've compiled a new one with a bug
    removed:

    Once fetched, the "updatefix.sh" script will perform a bunch
    of moves
    (mv). Besides the fact they can be VASTLY optimized -
    moving the entire
    content of a temp dir into the appropriate destination dir, the
    generic
    line has bad problems in case of java classes with the dollar
    sign in the
    filename ("$"). Such chars are interpreted as variable
    indicator, so a mv
    like:

    ---
    mv "tempdir/dir/someclass$1.class" "dir/someclass$1.class"
    ---

    being "$1" equal to the null string, will become:

    ---
    mv tempdir/dir/someclass.class dir/someclass.class
    ---

    which obviously leads to file not found errors.

    So the updatefix.sh will now use ' instead of ".

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.