public BuildLayoutConfiguration(StartParameter startParameter) { currentDir = startParameter.getCurrentDir(); searchUpwards = startParameter.isSearchUpwards(); settingsFile = startParameter.getSettingsFile(); useEmptySettings = startParameter.isUseEmptySettings(); }
public BuildLayoutConfiguration(StartParameter startParameter) { currentDir = startParameter.getCurrentDir(); searchUpwards = startParameter.isSearchUpwards(); settingsFile = startParameter.getSettingsFile(); useEmptySettings = startParameter.isUseEmptySettings(); }
private static void checkIfNotRunningFromRootOfPride(final Project project) throws IOException { // Don't check for a pride when not searching upward if (!project.getGradle().getStartParameter().isSearchUpwards()) { return; } if (!alreadyCheckedIfRunningFromRootOfPride) { if (!Pride.containsPride(project.getRootDir())) { logger.debug("No pride found in " + String.valueOf(project.getRootDir())); for (File dir = project.getRootDir().getParentFile(); dir != null && dir.canRead(); dir = dir.getParentFile()) { logger.debug("Checking pride in " + dir); if (Pride.containsPride(dir)) { logger.warn("WARNING: Found a pride in parent directory " + dir + ". " + "This means that you are running Gradle from a subproject of the pride. " + "Dynamic dependencies cannot be resolved to local projects this way. " + "To avoid this warning run Gradle from the root of the pride."); break; } } } alreadyCheckedIfRunningFromRootOfPride = true; } }
private static void checkIfNotRunningFromRootOfPride(final Project project) throws IOException { // Don't check for a pride when not searching upward if (!project.getGradle().getStartParameter().isSearchUpwards()) { return; } if (!alreadyCheckedIfRunningFromRootOfPride) { if (!Pride.containsPride(project.getRootDir())) { logger.debug("No pride found in " + String.valueOf(project.getRootDir())); for (File dir = project.getRootDir().getParentFile(); dir != null && dir.canRead(); dir = dir.getParentFile()) { logger.debug("Checking pride in " + dir); if (Pride.containsPride(dir)) { logger.warn("WARNING: Found a pride in parent directory " + dir + ". " + "This means that you are running Gradle from a subproject of the pride. " + "Dynamic dependencies cannot be resolved to local projects this way. " + "To avoid this warning run Gradle from the root of the pride."); break; } } } alreadyCheckedIfRunningFromRootOfPride = true; } }