package de.uhilger.calypso.neu;
|
|
import java.io.File;
|
import java.util.logging.Level;
|
import java.util.logging.Logger;
|
|
/**
|
*
|
* @author Ulrich Hilger
|
*/
|
public class Server {
|
|
private static final Logger logger = Logger.getLogger(de.uhilger.calypso.Server.class.getName());
|
|
public static final String CONF = "conf";
|
public static final String PORT = "port";
|
public static final String SKRIPTE = "skripte";
|
|
public static final String EQUAL = "=";
|
|
private AppProperties einst;
|
|
public void start(AppProperties einst) {
|
logger.log(Level.INFO, "Server startet auf Port {0}", einst.getString(PORT));
|
this.einst = einst;
|
String skripte = einst.getString(SKRIPTE);
|
File playSkript = new File(skripte, "play");
|
if(playSkript.exists()) {
|
logger.log(Level.INFO, "Skripte gefunden in {0}", playSkript.getParentFile().getAbsolutePath());
|
} else {
|
logger.log(Level.INFO, "Skripte nicht gefunden, Ordner laut Einstellungen: {0}", skripte);
|
}
|
}
|
|
}
|