From ac11942f36b8c38244930260a0ead02c9325a75e Mon Sep 17 00:00:00 2001 From: ulrich Date: Wed, 24 Mar 2021 23:17:40 +0000 Subject: [PATCH] FileHandler hinzugefuegt --- src/de/uhilger/avdirektor/App.java | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/de/uhilger/avdirektor/App.java b/src/de/uhilger/avdirektor/App.java index d4b7035..c9e1747 100644 --- a/src/de/uhilger/avdirektor/App.java +++ b/src/de/uhilger/avdirektor/App.java @@ -1,5 +1,6 @@ package de.uhilger.avdirektor; +import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.logging.Level; @@ -23,6 +24,10 @@ private static final Logger logger = Logger.getLogger(App.class.getName()); + public static final String IP_PORT = "port"; + public static final String IP_WWW_DATA = "www-data"; + public static final String IP_NFS_PREFIX = "nfs-prefix"; + private static HashMap initParams; private static Process playerproc; @@ -35,9 +40,8 @@ String[] argParts = arg.split("="); initParams.put(argParts[0], argParts[1]); } - - - Server server = new Server(Integer.parseInt(getInitParameter("port"))); + + Server server = new Server(Integer.parseInt(getInitParameter(IP_PORT))); try { server.start(); } catch (IOException ex) { -- Gitblit v1.9.3