/// <summary> /// This method is the base to build full command line to execute Jedi VCS /// </summary> /// <params name="result">Integration parameters</params> /// <params name="args">The specific command to execute with parameters</params> /// <returns>The default command line to execute jvcs.exe with options</returns> private ProcessInfo NewProcessInfoWithArgs(IIntegrationResult result, JediVCSProcessArgumentBuilder args) { if (String.IsNullOrEmpty(Server)) throw new JediVCSException("JediVCS plugin error : No Server Name or ip adress "); if (String.IsNullOrEmpty(UserName)) throw new JediVCSException("JediVCS plugin error : blank user Name or password !"); if (String.IsNullOrEmpty(Password)) throw new JediVCSException("JediVCS plugin error : blank user Name or password !"); JediVCSProcessArgumentBuilder builder = new JediVCSProcessArgumentBuilder(); builder.AddArgument(Server); if (ServerPort != DefaultJediVCSServerPort) { builder.AppendArgument(":"); builder.AppendArgument(ServerPort); } builder.AddArgument("user", UserName); builder.AddArgument("password", Password); builder.AddArguments(args); if (JediVCSPath.Equals(string.Empty)) return new ProcessInfo(Executable, builder.ToString(), result.BaseFromWorkingDirectory(WorkingDirectory)); else return new ProcessInfo(JediVCSPath + "\\" + Executable, builder.ToString(), result.BaseFromWorkingDirectory(WorkingDirectory)); }
public void AddArguments(JediVCSProcessArgumentBuilder args) { buffer = buffer + " " + args.ToString(); }