props.load(defaultProfilesFile);
} finally {
defaultProfilesFile.close();
}
Map<String, ExecutionEnvironmentProfile> profiles = new HashMap<String, ExecutionEnvironmentProfile>();
for (Entry<Object, Object> prop : props.entrySet()) {
String propName = (String) prop.getKey();
if (propName.endsWith(".pkglist")) {
String profileName = propName.substring(0, propName.length() - 8);
if (!profiles.containsKey(profileName)) {
loadProfile(props, profiles, profileName);