Search in sources :

Example 1 with IdeaSVNConfigFile

use of org.jetbrains.idea.svn.IdeaSVNConfigFile in project intellij-community by JetBrains.

the class ProxyModule method ensureGroupForHost.

@NotNull
private String ensureGroupForHost(@NotNull Command command, @NotNull String host) {
    IdeaSVNConfigFile configFile = new IdeaSVNConfigFile(myAuthenticationService.getSpecialConfigDir());
    String groupName = SvnAuthenticationManager.getGroupForHost(host, configFile);
    if (StringUtil.isEmptyOrSpaces(groupName)) {
        groupName = IdeaSVNConfigFile.getNewGroupName(host, configFile);
        command.put("--config-option");
        command.put(String.format("servers:groups:%s=%s*", groupName, host));
    }
    return groupName;
}
Also used : IdeaSVNConfigFile(org.jetbrains.idea.svn.IdeaSVNConfigFile) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

NotNull (org.jetbrains.annotations.NotNull)1 IdeaSVNConfigFile (org.jetbrains.idea.svn.IdeaSVNConfigFile)1