/// <summary> /// Builds the command string for this particular command. /// </summary> /// <returns> /// The command string for this particular command. /// </returns> protected string getSpecificCommandArguments( ) { StringBuilder arguments = new StringBuilder(); arguments.Append("reopen "); if (Changelist != null) { if (Changelist.ToLower() == "default") { arguments.Append("-c default "); } else { arguments.Append(string.Format("-c {0} ", Perforce.GetChangelistNumber( User, Client, Changelist, true))); } } if (Type != null) { arguments.Append(string.Format("-t {0} ", Type)); } arguments.Append(View); return(arguments.ToString()); }
protected string getSpecificCommandArguments() { StringBuilder arguments = new StringBuilder(); arguments.Append("lock "); if (Changelist != null) { if (Changelist.ToLower() == "default") { arguments.Append("-c default "); } else { arguments.Append(string.Format("-c {0} ", NAnt.Contrib.Tasks.Perforce.Perforce.GetChangelistNumber(User, Client, Changelist, true))); } } if (File != null) { arguments.Append(string.Format(" {0} ", File)); } return(arguments.ToString()); }