From 4e236fc5ab34e74e28ba9b6fdc15c1d618e3b056 Mon Sep 17 00:00:00 2001 From: zzz Date: Wed, 8 Mar 2017 13:48:28 +0000 Subject: [PATCH] Put Jetty 9 files in eepsite-jetty9/ directory in updater --- build.xml | 4 ++-- .../src/net/i2p/router/startup/MigrateJetty.java | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/build.xml b/build.xml index 079b83a723..5d37b225bb 100644 --- a/build.xml +++ b/build.xml @@ -1597,13 +1597,13 @@ - + - + diff --git a/router/java/src/net/i2p/router/startup/MigrateJetty.java b/router/java/src/net/i2p/router/startup/MigrateJetty.java index 24b07e5b55..c4ee2b65b6 100644 --- a/router/java/src/net/i2p/router/startup/MigrateJetty.java +++ b/router/java/src/net/i2p/router/startup/MigrateJetty.java @@ -56,7 +56,7 @@ abstract class MigrateJetty { private static final String TEST_CLASS = "org.eclipse.jetty.server.Server"; private static final String BACKUP_SUFFIX = ".jetty6"; private static final String BACKUP_SUFFIX_8 = ".jetty8"; - private static final String JETTY_TEMPLATE_DIR = "eepsite-jetty7"; + private static final String JETTY_TEMPLATE_DIR = "eepsite-jetty9"; private static final String JETTY_TEMPLATE_PKGDIR = "eepsite"; private static final String BASE_CONTEXT = "contexts/base-context.xml"; private static final String CGI_CONTEXT = "contexts/cgi-context.xml"; @@ -87,7 +87,7 @@ abstract class MigrateJetty { } else if (app.className.equals(OLD_CLASS) || app.className.equals(OLD_CLASS_6)) { client = "client application " + i + " [" + app.clientName + "] from Jetty 5/6 " + app.className + - " to Jetty 7 " + NEW_CLASS; + " to Jetty 9 " + NEW_CLASS; backupSuffix = BACKUP_SUFFIX; } else { continue; @@ -142,7 +142,7 @@ abstract class MigrateJetty { continue; } - // Below here is migration of 5/6 to 7/8 + // Below here is migration of 5/6 to 9 File baseEep = new File(ctx.getBaseDir(), JETTY_TEMPLATE_DIR); // in packages, or perhaps on an uninstall/reinstall, the files are in eepsite/ @@ -199,7 +199,7 @@ abstract class MigrateJetty { ClientAppConfig.writeClientAppConfig(ctx, apps); System.err.println("WARNING: Migrated clients config file " + cfgFile + " from Jetty 5/6 " + OLD_CLASS + '/' + OLD_CLASS_6 + - " to Jetty 7 " + NEW_CLASS); + " to Jetty 9 " + NEW_CLASS); } } if (jetty9success) @@ -208,7 +208,7 @@ abstract class MigrateJetty { /** * Migrate a jetty.xml file to Jetty 9. - * Unlike above, where we just migrate the new install file over for Jetty 7/8, + * Unlike above, where we just migrate the new install file over for Jetty 9, * here we modify the xml file in-place to preserve settings where possible. * * @return success @@ -408,7 +408,7 @@ abstract class MigrateJetty { } - /** do we have Jetty 7? */ + /** do we have Jetty 7/8/9? */ private static boolean hasLatestJetty() { if (!_wasChecked) { try {