use of org.gradle.api.internal.SettingsInternal in project gradle by gradle.
the class BuildLogger method settingsEvaluated.
public void settingsEvaluated(Settings settings) {
SettingsInternal settingsInternal = (SettingsInternal) settings;
logger.info("Settings evaluated using {}.", settingsInternal.getSettingsScript().getDisplayName());
}
use of org.gradle.api.internal.SettingsInternal in project gradle by gradle.
the class DefaultSettingsLoader method findAndLoadSettings.
@Override
public SettingsInternal findAndLoadSettings(GradleInternal gradle) {
StartParameter startParameter = gradle.getStartParameter();
SettingsInternal settings = findSettingsAndLoadIfAppropriate(gradle, startParameter);
ProjectSpec spec = ProjectSpecs.forStartParameter(startParameter, settings);
if (spec.containsProject(settings.getProjectRegistry())) {
setDefaultProject(spec, settings);
return settings;
}
deprecateWarningIfNecessary(startParameter, settings);
// Try again with empty settings
StartParameter noSearchParameter = startParameter.newInstance();
noSearchParameter.useEmptySettings();
settings = findSettingsAndLoadIfAppropriate(gradle, noSearchParameter);
// Set explicit build file, if required
if (noSearchParameter.getBuildFile() != null) {
ProjectDescriptor rootProject = settings.getRootProject();
rootProject.setBuildFileName(noSearchParameter.getBuildFile().getName());
}
setDefaultProject(spec, settings);
return settings;
}
use of org.gradle.api.internal.SettingsInternal in project gradle by gradle.
the class DefaultSettingsLoaderFactory method defaultSettingsLoader.
private SettingsLoader defaultSettingsLoader() {
final DefaultSettingsLoader delegate = new DefaultSettingsLoader(settingsFinder, settingsProcessor, buildSourceBuilder);
return new SettingsLoader() {
@Override
public SettingsInternal findAndLoadSettings(GradleInternal gradle) {
SettingsInternal settings = delegate.findAndLoadSettings(gradle);
gradle.setSettings(settings);
return settings;
}
};
}
use of org.gradle.api.internal.SettingsInternal in project gradle by gradle.
the class SettingsEvaluatedCallbackFiringSettingsProcessor method process.
@Override
public SettingsInternal process(GradleInternal gradle, SettingsLocation settingsLocation, ClassLoaderScope buildRootClassLoaderScope, StartParameter startParameter) {
SettingsInternal settings = delegate.process(gradle, settingsLocation, buildRootClassLoaderScope, startParameter);
gradle.getBuildListenerBroadcaster().settingsEvaluated(settings);
return settings;
}
Aggregations