| | |
| | | package de.uhilger.avdirektor; |
| | | |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.util.HashMap; |
| | | import java.util.logging.Level; |
| | |
| | | |
| | | 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; |
| | | |
| | |
| | | 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) { |