net.i2p.router.tasks
Class InstallUpdate

java.lang.Object
  extended by net.i2p.router.tasks.InstallUpdate

public class InstallUpdate
extends Object

If the i2pupdate.zip file is present, unzip it and JVM exit.

Since:
0.9.20 moved from Router.java

Constructor Summary
InstallUpdate()
           
 
Method Summary
static void installUpdates(Router r)
          Context must be available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstallUpdate

public InstallUpdate()
Method Detail

installUpdates

public static void installUpdates(Router r)
Context must be available. Unzip update file found in the router dir OR base dir, to the base dir If successful, will call exit() and never return. If we can't write to the base dir, write message to System.out and return. Note: _log not available here.