From a8c29ae1508ef9b099860938b2b6911691cba567 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 29 Jun 2015 16:43:50 +1200 Subject: Add debug and release web versions --- src/org/traccar/http/WebServer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/http/WebServer.java b/src/org/traccar/http/WebServer.java index 9030e992b..21a7ba775 100644 --- a/src/org/traccar/http/WebServer.java +++ b/src/org/traccar/http/WebServer.java @@ -66,7 +66,11 @@ public class WebServer { ResourceHandler resourceHandler = new ResourceHandler(); resourceHandler.setResourceBase(properties.getProperty("web.path")); - resourceHandler.setWelcomeFiles(new String[]{"index.html"}); + if (Boolean.valueOf(properties.getProperty("web.debug"))) { + resourceHandler.setWelcomeFiles(new String[]{"debug.html"}); + } else { + resourceHandler.setWelcomeFiles(new String[]{"release.html"}); + } HandlerList handlerList = new HandlerList(); handlerList.setHandlers(new Handler[] {servletHandler, resourceHandler}); -- cgit v1.2.3