Line | |
---|
1 | package net.oni2.aeinstaller.backend;
|
---|
2 |
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * @author Christian Illy
|
---|
6 | */
|
---|
7 | public class RuntimeOptions {
|
---|
8 | private static boolean debugRun = false;
|
---|
9 | private static boolean useWorkingDir = false;
|
---|
10 | private static boolean offlineMode = false;
|
---|
11 | private static boolean noCacheUpdate = false;
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * @param debug
|
---|
15 | * Debug mode
|
---|
16 | */
|
---|
17 | public static void setDebug(boolean debug) {
|
---|
18 | debugRun = debug;
|
---|
19 | }
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * @return Is debug run
|
---|
23 | */
|
---|
24 | public static boolean isDebug() {
|
---|
25 | return debugRun;
|
---|
26 | }
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * @param useWd
|
---|
30 | * Use working directory instead of jar path
|
---|
31 | */
|
---|
32 | public static void setUseWorkingDir(boolean useWd) {
|
---|
33 | useWorkingDir = useWd;
|
---|
34 | }
|
---|
35 |
|
---|
36 | /**
|
---|
37 | * @return Do we want to use working directory
|
---|
38 | */
|
---|
39 | public static boolean getUseWorkingDir() {
|
---|
40 | return useWorkingDir;
|
---|
41 | }
|
---|
42 |
|
---|
43 | /**
|
---|
44 | * @return Is offline?
|
---|
45 | */
|
---|
46 | public static boolean isOfflineMode() {
|
---|
47 | return offlineMode;
|
---|
48 | }
|
---|
49 |
|
---|
50 | /**
|
---|
51 | * @param offline
|
---|
52 | * Is offline?
|
---|
53 | */
|
---|
54 | public static void setOfflineMode(boolean offline) {
|
---|
55 | offlineMode = offline;
|
---|
56 | }
|
---|
57 |
|
---|
58 | /**
|
---|
59 | * @return Is in noCacheUpdate mode?
|
---|
60 | */
|
---|
61 | public static boolean isNoCacheUpdateMode() {
|
---|
62 | return noCacheUpdate;
|
---|
63 | }
|
---|
64 |
|
---|
65 | /**
|
---|
66 | * @param noCacheUpd
|
---|
67 | * Is in noCacheUpdate mode?
|
---|
68 | */
|
---|
69 | public static void setNoCacheUpdateMode(boolean noCacheUpd) {
|
---|
70 | noCacheUpdate = noCacheUpd;
|
---|
71 | }
|
---|
72 |
|
---|
73 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.