Search in sources :

Example 1 with ChildSettings

use of org.sonar.server.setting.ChildSettings in project sonarqube by SonarSource.

the class ProjectConfigurationFactory method newProjectConfiguration.

public Configuration newProjectConfiguration(String projectKey, Branch branch) {
    Settings projectSettings = new ChildSettings(globalSettings);
    addSettings(projectSettings, projectKey);
    if (branch.getType() == BranchType.PULL_REQUEST) {
        addSettings(projectSettings, generatePullRequestKey(projectKey, branch.getPullRequestKey()));
    } else {
        addSettings(projectSettings, generateBranchKey(projectKey, branch.getName()));
    }
    return new ConfigurationBridge(projectSettings);
}
Also used : ChildSettings(org.sonar.server.setting.ChildSettings) ConfigurationBridge(org.sonar.api.config.internal.ConfigurationBridge) Settings(org.sonar.api.config.internal.Settings) ChildSettings(org.sonar.server.setting.ChildSettings)

Aggregations

ConfigurationBridge (org.sonar.api.config.internal.ConfigurationBridge)1 Settings (org.sonar.api.config.internal.Settings)1 ChildSettings (org.sonar.server.setting.ChildSettings)1