|
@@ -22,6 +22,9 @@
|
22
|
22
|
|
23
|
23
|
package uk.co.md87.evetool;
|
24
|
24
|
|
|
25
|
+import java.io.BufferedReader;
|
|
26
|
+import java.io.IOException;
|
|
27
|
+import java.io.InputStreamReader;
|
25
|
28
|
import java.util.Collections;
|
26
|
29
|
import java.util.logging.Handler;
|
27
|
30
|
import java.util.logging.Level;
|
|
@@ -38,10 +41,14 @@ import uk.co.md87.evetool.ui.MainWindow;
|
38
|
41
|
*/
|
39
|
42
|
public class Main {
|
40
|
43
|
|
|
44
|
+ public static String version;
|
|
45
|
+
|
41
|
46
|
/**
|
42
|
47
|
* @param args the command line arguments
|
43
|
48
|
*/
|
44
|
|
- public static void main(String[] args) {
|
|
49
|
+ public static void main(final String[] args) {
|
|
50
|
+ readVersion();
|
|
51
|
+
|
45
|
52
|
Logger.getLogger("uk").setLevel(Level.ALL);
|
46
|
53
|
|
47
|
54
|
for (Handler handler : Logger.getLogger("").getHandlers()) {
|
|
@@ -61,4 +68,14 @@ public class Main {
|
61
|
68
|
System.out.println(cs.getSkills());
|
62
|
69
|
}
|
63
|
70
|
|
|
71
|
+ protected static void readVersion() {
|
|
72
|
+ try {
|
|
73
|
+ final BufferedReader br = new BufferedReader(new InputStreamReader(
|
|
74
|
+ Main.class.getResourceAsStream("version.txt")));
|
|
75
|
+ version = br.readLine();
|
|
76
|
+ } catch (IOException ex) {
|
|
77
|
+ Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
|
|
78
|
+ }
|
|
79
|
+ }
|
|
80
|
+
|
64
|
81
|
}
|