public static SVNSettings Read() { SVNSettings s = new SVNSettings(); s.SVN_FilePath = GetSVN_FilePath(); s.SVN_Url = GetSVN_Url(); s.SVN_Version = GetSVN_Version(); return s; }
public static SVNSettings Read() { SVNSettings s = new SVNSettings(); s.SVN_FilePath = GetSVN_FilePath(); s.SVN_Url = GetSVN_Url(); s.SVN_Version = GetSVN_Version(); return(s); }
public SVNCodeRepositoryServiceClient([Import] IEventAggregator aggregator) { this.aggregator = aggregator; aggregator.Subscribe<MemberProfile>(ScrumFactoryEvent.SignedMemberChanged, m => { svnServerSettings = null; }); }
public bool LoadSettings(out string errorMessage) { errorMessage = null; settings = new SVNSettings(); if (svnServerSettings == null) { try { svnServerSettings = projectsService.GetSVNSettings(); } catch (Exception ex) { errorMessage = ex.Message; } } settings = svnServerSettings; // use local values if(!String.IsNullOrEmpty(SFConfig.GetStringValue("RepositoryUrl"))) settings.SVN_Url = SFConfig.GetStringValue("RepositoryUrl"); if (!String.IsNullOrEmpty(SFConfig.GetStringValue("RepositoryFilePath"))) settings.SVN_FilePath = SFConfig.GetStringValue("RepositoryFilePath"); if (!String.IsNullOrEmpty(SFConfig.GetStringValue("RepositoryVersion"))) settings.SVN_Version = int.Parse(SFConfig.GetStringValue("RepositoryVersion")); if (String.IsNullOrEmpty(settings.SVN_Url) || String.IsNullOrEmpty(settings.SVN_FilePath)) { errorMessage = "Please go to 'Options...' > 'SVN' and configure the SVN Settings."; return false; } return true; }