Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
CoreLauncher |
|
| 1.0;1 |
1 | package org.jtheque.core; | |
2 | ||
3 | import org.jtheque.core.managers.core.Core; | |
4 | import org.jtheque.core.managers.core.application.Application; | |
5 | import org.jtheque.core.managers.core.application.XMLApplicationReader; | |
6 | import org.jtheque.core.utils.SystemProperty; | |
7 | ||
8 | /* | |
9 | * This file is part of JTheque. | |
10 | * | |
11 | * JTheque is free software: you can redistribute it and/or modify | |
12 | * it under the terms of the GNU General Public License as published by | |
13 | * the Free Software Foundation, either version 3 of the License. | |
14 | * | |
15 | * JTheque is distributed in the hope that it will be useful, | |
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | * GNU General Public License for more details. | |
19 | * | |
20 | * You should have received a copy of the GNU General Public License | |
21 | * along with JTheque. If not, see <http://www.gnu.org/licenses/>. | |
22 | */ | |
23 | ||
24 | /** | |
25 | * A simple launcher for XML applications. | |
26 | * | |
27 | * @author Baptiste Wicht | |
28 | */ | |
29 | public final class CoreLauncher { | |
30 | /** | |
31 | * Utility class, not instanciable. | |
32 | */ | |
33 | private CoreLauncher() { | |
34 | 0 | super(); |
35 | 0 | } |
36 | ||
37 | /** | |
38 | * Launch the application. The application is read from the "application.xml" file at the same location than the | |
39 | * core. | |
40 | * | |
41 | * @param args No args will be read. | |
42 | */ | |
43 | public static void main(String[] args){ | |
44 | 0 | SystemProperty.USER_DIR.set("N:\\Programmation\\WorkDirectory\\JTheque\\Applications\\JTheque Movies Windows\\core\\"); |
45 | ||
46 | 0 | Application application = new XMLApplicationReader().readApplication(SystemProperty.USER_DIR.get() + "application.xml"); |
47 | ||
48 | 0 | Core.getInstance().launchJThequeCore(application); |
49 | 0 | } |
50 | } |