commit | author | age
|
2f2aa7
|
1 |
package de.uhilger.calypso.neu; |
U |
2 |
|
|
3 |
import java.util.HashMap; |
|
4 |
|
|
5 |
/** |
|
6 |
* |
|
7 |
* @author Ulrich Hilger |
|
8 |
*/ |
|
9 |
public class App { |
|
10 |
/** |
|
11 |
* @param args the command line arguments |
|
12 |
*/ |
|
13 |
public static void main(String[] args) { |
|
14 |
HashMap<String, String> initParams = new HashMap(); |
|
15 |
for (String arg : args) { |
|
16 |
String[] argParts = arg.split(Server.EQUAL); |
|
17 |
initParams.put(argParts[0], argParts[1]); |
|
18 |
} |
|
19 |
String conf = initParams.get(Server.CONF); |
|
20 |
AppProperties einst = new AppProperties(); |
|
21 |
einst.readFile(conf); |
|
22 |
Server server; |
|
23 |
server = new Server(); |
|
24 |
server.start(einst); |
|
25 |
} |
|
26 |
|
|
27 |
} |