2004-09-29 jrandom

* Always wipe the Jetty work directory on startup, so that web updates
      are reflected immediately (Jetty does not honor the cache across
      multiple executions)
in addition, refactor various file ops out of the DataHelper into FileUtil
This commit is contained in:
jrandom
2004-09-29 19:34:02 +00:00
committed by zzz
parent 774231f347
commit 010b285e67
7 changed files with 196 additions and 100 deletions

View File

@ -38,6 +38,7 @@ import net.i2p.router.message.TunnelMessageHandler;
import net.i2p.router.startup.StartupJob;
import net.i2p.stat.Rate;
import net.i2p.stat.RateStat;
import net.i2p.util.FileUtil;
import net.i2p.util.I2PThread;
import net.i2p.util.Log;
@ -760,7 +761,7 @@ public class Router {
File updateFile = new File(UPDATE_FILE);
if (updateFile.exists()) {
System.out.println("INFO: Update file exists [" + UPDATE_FILE + "] - installing");
boolean ok = DataHelper.extractZip(updateFile, new File("."));
boolean ok = FileUtil.extractZip(updateFile, new File("."));
if (ok)
System.out.println("INFO: Update installed");
else