net.i2p.router.startup
Class MigrateJetty
java.lang.Object
net.i2p.router.startup.MigrateJetty
abstract class MigrateJetty
- extends Object
Migrate the clients.config and jetty.xml files
from Jetty 5 to Jetty 6.
For each client for class org.mortbay.jetty.Server:
Let $D be the dir that jetty.xml is in (usually ~/.i2p/eepsite)
Saves $D/jetty.xml to $D/jetty5.xml
Copies $I2P/eepsite-jetty6/jetty.xml to $D/jetty.xml, edited for $D
Copies $I2P/eepsite-jetty6/jetty-ssl.xml to $D/jetty-ssl.xml, edited for $D
Copies $I2P/eepsite-jetty6/jetty-rewrite.xml to $D/jetty-rewrite.xml
Copies $I2P/eepsite-jetty6/context/base-context.xml to $D/jetty.xml, edited for $D
Copies $I2P/eepsite-jetty6/context/cgi-context.xml to $D/jetty.xml, edited for $D
Copies $I2P/eepsite-jetty6/etc/* to $D/etc
Changes main class in clients.config
Copies clients.config to clients.config.backup
Saves new clients.config
Does NOT preserve port number, thread counts, etc.
- Since:
- Jetty 6
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MigrateJetty
MigrateJetty()
migrate
public static void migrate(RouterContext ctx,
List<ClientAppConfig> apps)