public ManualBranchResolver(ILogger log, ITagResolver fallbackResolver, ITagResolver tagResolver, RenameRule branchpointRule) { m_log = log; m_fallback = fallbackResolver; m_tagResolver = tagResolver; m_branchpointRule = branchpointRule; }
private void AddRenameRule(Renamer renamer, string rule) { try { renamer.AddRule(RenameRule.Parse(rule)); } catch (ArgumentException ae) { throw new CommandLineArgsException("Invalid rename rule: {0}", ae.Message); } }
public void ParseCommandLineSwitches(params string[] args) { m_switches.Parse(args); try { if (m_switches.BranchpointRule != null) { BranchpointRule = RenameRule.Parse(m_switches.BranchpointRule); } } catch (ArgumentException ae) { throw new CommandLineArgsException("Invalid branchpoint rule: {0}", ae.Message); } }
/// <summary> /// Adds a renaming rule. /// </summary> public void AddRule(RenameRule rule) { m_rules.Add(rule); }