@Test public void mergeProfiles() throws Exception { Profile profile = ProfileUtil.findProfile("merge-1", getProfileDir()); assertFalse(profile.getEnricherConfig().use("fmp-project-label")); assertTrue(profile.getEnricherConfig().use("fmp-image")); }
private static Profile mergeProfiles(List<Profile> profiles) { Profile ret = null; for (Profile profile : profiles) { if (profile != null) { if (ret == null) { ret = new Profile(profile); } else { ret = new Profile(ret, profile); } } } return ret; }
ProfileUtil { private static Profile mergeProfiles(List<Profile> profiles) { Profile ret = null; for (Profile profile : profiles) { if (profile != null) { if (ret == null) { ret = new Profile(profile); } else { ret = new Profile(ret, profile); } } } return ret; } }
ProfileUtil { private static Profile mergeProfiles(List<Profile> profiles) { Profile ret = null; for (Profile profile : profiles) { if (profile != null) { if (ret == null) { ret = new Profile(profile); } else { ret = new Profile(ret, profile); } } } return ret; } private  ProfileUtil(); }
ProfileUtil { private static Profile mergeProfiles(List<Profile> profiles) { Profile ret = null; for (Profile profile : profiles) { if (profile != null) { if (ret == null) { ret = new Profile(profile); } else { ret = new Profile(ret, profile); } } } return ret; } private  ProfileUtil(); static Profile findProfile(String profileArg, File resourceDir); static ProcessorConfig blendProfileWithConfiguration(ProcessorConfigurationExtractor configExtractor,
                                                                String profile,
                                                                File resourceDir,
                                                                ProcessorConfig config); static Profile lookup(String name, File directory); static List<Profile> readAllFromClasspath(String name, String ext); static List<Profile> fromYaml(InputStream is); }
ProfileUtil { private static Profile mergeProfiles(List<Profile> profiles) { Profile ret = null; for (Profile profile : profiles) { if (profile != null) { if (ret == null) { ret = new Profile(profile); } else { ret = new Profile(ret, profile); } } } return ret; } private  ProfileUtil(); static Profile findProfile(String profileArg, File resourceDir); static ProcessorConfig blendProfileWithConfiguration(ProcessorConfigurationExtractor configExtractor,
                                                                String profile,
                                                                File resourceDir,
                                                                ProcessorConfig config); static Profile lookup(String name, File directory); static List<Profile> readAllFromClasspath(String name, String ext); static List<Profile> fromYaml(InputStream is); static final String[] PROFILE_FILENAMES; static final String DEFAULT_PROFILE; final static ProcessorConfigurationExtractor GENERATOR_CONFIG; final static ProcessorConfigurationExtractor ENRICHER_CONFIG; final static ProcessorConfigurationExtractor WATCHER_CONFIG; }