Lisätty versiotieto ohjelmaan
Signed-off-by: laurimaaninka <lauri.maaninka@gmail.com>
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
package fi.lpam;
|
||||
|
||||
import javax.print.DocFlavor;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.Properties;
|
||||
|
||||
public class Main {
|
||||
public static boolean dev;
|
||||
public static Properties properties;
|
||||
|
||||
static void main(String[] args) {
|
||||
//noinspection RedundantIfStatement
|
||||
@@ -10,6 +16,16 @@ public class Main {
|
||||
} else {
|
||||
dev = false;
|
||||
}
|
||||
|
||||
InputStream stream = Main.class.getClassLoader().getResourceAsStream("app.properties");
|
||||
properties = new Properties();
|
||||
try {
|
||||
properties.load(stream);
|
||||
}
|
||||
catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
App.main();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user