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(); } }