public static BrooklynProperties newDefault() { BrooklynProperties p = new BrooklynProperties().addEnvironmentVars().addSystemProperties(); File f = new File( p.getFirst(MutableMap.of("defaultIfNone", "/"), "user.home", "HOME") + File.separatorChar + ".brooklyn" + File.separatorChar + "brooklyn.properties"); if (f.exists()) p.addFrom(f); return p; }
private static void addGlobalProperties(BrooklynProperties p) { String userHome = System.getProperty("user.home"); File globalPropertiesFile = new File( userHome + File.separatorChar + ".brooklyn" + File.separatorChar + "brooklyn.properties"); if (globalPropertiesFile.exists()) { p.addFrom(globalPropertiesFile); } }