/*
|
Calypso - Media Player Remote Control via HTTP for Raspberry Pi
|
Copyright (C) 2021-2023 Ulrich Hilger
|
|
This program is free software: you can redistribute it and/or modify
|
it under the terms of the GNU Affero General Public License as
|
published by the Free Software Foundation, either version 3 of the
|
License, or (at your option) any later version.
|
|
This program is distributed in the hope that it will be useful,
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
GNU Affero General Public License for more details.
|
|
You should have received a copy of the GNU Affero General Public License
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
*/
|
|
package de.uhilger.calypso;
|
|
import de.uhilger.calypso.http.Server;
|
import java.util.HashMap;
|
|
/**
|
*
|
* @author Ulrich Hilger
|
*/
|
public class App {
|
/**
|
* @param args the command line arguments
|
*/
|
public static void main(String[] args) {
|
HashMap<String, String> initParams = new HashMap();
|
for (String arg : args) {
|
String[] argParts = arg.split(Server.EQUAL);
|
initParams.put(argParts[0], argParts[1]);
|
}
|
String conf = initParams.get(Server.CONF);
|
AppProperties einst = new AppProperties();
|
einst.readFile(conf);
|
Server server;
|
server = new Server();
|
server.start(einst);
|
}
|
|
}
|