c2942a7455
Signed-off-by: laurimaaninka <lauri.maaninka@gmail.com>
29 lines
674 B
Java
29 lines
674 B
Java
package fi.lpam;
|
|
|
|
import java.io.IOException;
|
|
import java.util.Properties;
|
|
|
|
public class Main {
|
|
public static boolean dev;
|
|
public static Properties properties;
|
|
|
|
static void main(String[] args) {
|
|
//noinspection RedundantIfStatement
|
|
if (args.length > 0) {
|
|
dev = true;
|
|
} else {
|
|
dev = false;
|
|
}
|
|
|
|
try {
|
|
properties = new Properties();
|
|
properties.load(Main.class.getClassLoader().getResourceAsStream("app.properties"));
|
|
}
|
|
catch (IOException e) {
|
|
//noinspection CallToPrintStackTrace
|
|
e.printStackTrace();
|
|
}
|
|
|
|
App.main();
|
|
}
|
|
} |