GradlePluginsDefaultsUtil { public static Set<String> getBuildProfileFileNames( String buildProfile, boolean publicBranch) { if (Validator.isNull(buildProfile)) { return null; } String suffix = "private"; if (publicBranch) { suffix = "public"; } Set<String> fileNames = new HashSet<>(); if (Objects.equals(buildProfile, "dxp")) { buildProfile = "portal"; } fileNames.add(_BUILD_PROFILE_FILE_NAME_PREFIX + buildProfile); fileNames.add( _BUILD_PROFILE_FILE_NAME_PREFIX + buildProfile + "-" + suffix); if (buildProfile.equals("portal-deprecated")) { fileNames.add(_BUILD_PROFILE_FILE_NAME_PREFIX + "portal"); fileNames.add(_BUILD_PROFILE_FILE_NAME_PREFIX + "portal-" + suffix); } return fileNames; }  static void configureRepositories(
		Project project, File portalRootDir); static Set<String> getBuildProfileFileNames(
		String buildProfile, boolean publicBranch); @SuppressWarnings("unchecked") static boolean hasNPMParentThemesDependencies(Project project); static boolean isPrivateProject(Project project); static boolean isSnapshot(Project project); static boolean isSnapshot(Project project, String... propertyNames); static boolean isSubrepository(Project project); static boolean isTestProject(File dir); static boolean isTestProject(Project project); static void setProjectSnapshotVersion(
		Project project, String... propertyNames); static final String DEFAULT_REPOSITORY_URL; static final String[] JSON_VERSION_FILE_NAMES; static final String[] PARENT_THEME_PROJECT_NAMES; static final String SNAPSHOT_PROPERTY_NAME; static final String SNAPSHOT_VERSION_SUFFIX; static final String TMP_MAVEN_REPOSITORY_DIR_NAME; static final Pattern jsonVersionPattern; }
@Test public void testGetBuildProfileFileNames() { _testGetBuildProfileFileNames(null, false); _testGetBuildProfileFileNames(null, true); _testGetBuildProfileFileNames( "foo", false, ".lfrbuild-foo", ".lfrbuild-foo-private"); _testGetBuildProfileFileNames( "foo", true, ".lfrbuild-foo", ".lfrbuild-foo-public"); _testGetBuildProfileFileNames( "portal", false, ".lfrbuild-portal", ".lfrbuild-portal-private"); _testGetBuildProfileFileNames( "portal", true, ".lfrbuild-portal", ".lfrbuild-portal-public"); _testGetBuildProfileFileNames( "portal-deprecated", false, ".lfrbuild-portal", ".lfrbuild-portal-deprecated", ".lfrbuild-portal-deprecated-private", ".lfrbuild-portal-private"); _testGetBuildProfileFileNames( "portal-deprecated", true, ".lfrbuild-portal", ".lfrbuild-portal-deprecated", ".lfrbuild-portal-deprecated-public", ".lfrbuild-portal-public"); _testGetBuildProfileFileNames( "portal-foo", false, ".lfrbuild-portal-foo", ".lfrbuild-portal-foo-private"); _testGetBuildProfileFileNames( "portal-foo", true, ".lfrbuild-portal-foo", ".lfrbuild-portal-foo-public"); _testGetBuildProfileFileNames( "portal-pre", false, ".lfrbuild-portal-pre", ".lfrbuild-portal-pre-private"); _testGetBuildProfileFileNames( "portal-pre", true, ".lfrbuild-portal-pre", ".lfrbuild-portal-pre-public"); }