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;
}
Aggregations