I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit cbaa62dd authored by dev's avatar dev
Browse files

Added debug loggin of .war path.

parent 46b4ec48
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ import java.util.concurrent.ConcurrentHashMap; ...@@ -10,6 +10,7 @@ import java.util.concurrent.ConcurrentHashMap;
import net.i2p.I2PAppContext; import net.i2p.I2PAppContext;
import net.i2p.util.FileUtil; import net.i2p.util.FileUtil;
import net.i2p.util.Log;
import net.i2p.util.SecureDirectory; import net.i2p.util.SecureDirectory;
import org.mortbay.http.HttpContext; import org.mortbay.http.HttpContext;
...@@ -36,6 +37,12 @@ import org.mortbay.jetty.servlet.WebApplicationContext; ...@@ -36,6 +37,12 @@ import org.mortbay.jetty.servlet.WebApplicationContext;
public class WebAppStarter { public class WebAppStarter {
static final Map<String, Long> warModTimes = new ConcurrentHashMap(); static final Map<String, Long> warModTimes = new ConcurrentHashMap();
static private Log _log;
static {
_log = ContextHelper.getContext(null).logManager().getLog(WebAppStarter.class); ;
}
/** /**
* adds and starts * adds and starts
...@@ -43,7 +50,8 @@ public class WebAppStarter { ...@@ -43,7 +50,8 @@ public class WebAppStarter {
*/ */
static void startWebApp(I2PAppContext ctx, Server server, String appName, String warPath) throws Exception { static void startWebApp(I2PAppContext ctx, Server server, String appName, String warPath) throws Exception {
File tmpdir = new SecureDirectory(ctx.getTempDir(), "jetty-work-" + appName + ctx.random().nextInt()); File tmpdir = new SecureDirectory(ctx.getTempDir(), "jetty-work-" + appName + ctx.random().nextInt());
WebApplicationContext wac = addWebApp(ctx, server, appName, warPath, tmpdir); WebApplicationContext wac = addWebApp(ctx, server, appName, warPath, tmpdir);
_log.debug("Loading war from: " + warPath);
wac.start(); wac.start();
} }
...@@ -89,6 +97,8 @@ public class WebAppStarter { ...@@ -89,6 +97,8 @@ public class WebAppStarter {
// this does the passwords... // this does the passwords...
RouterConsoleRunner.initialize(wac); RouterConsoleRunner.initialize(wac);
// see WebAppConfiguration for info // see WebAppConfiguration for info
String[] classNames = server.getWebApplicationConfigurationClassNames(); String[] classNames = server.getWebApplicationConfigurationClassNames();
String[] newClassNames = new String[classNames.length + 1]; String[] newClassNames = new String[classNames.length + 1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment