当前位置: 首页>>代码示例>>C#>>正文


C# PrivateArguments.AddQuote方法代码示例

本文整理汇总了C#中ThoughtWorks.CruiseControl.Core.Util.PrivateArguments.AddQuote方法的典型用法代码示例。如果您正苦于以下问题:C# PrivateArguments.AddQuote方法的具体用法?C# PrivateArguments.AddQuote怎么用?C# PrivateArguments.AddQuote使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ThoughtWorks.CruiseControl.Core.Util.PrivateArguments的用法示例。


在下文中一共展示了PrivateArguments.AddQuote方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddQuoteWithValueAdds

 public void AddQuoteWithValueAdds()
 {
     var args = new PrivateArguments();
     args.AddQuote("testValue");
     Assert.AreEqual(1, args.Count);
     Assert.AreEqual("\"testValue\"", args.ToString());
 }
开发者ID:kascomp,项目名称:CruiseControl.NET,代码行数:7,代码来源:PrivateArgumentsTests.cs

示例2: NewHistoryProcessInfo

        //    HISTORY_COMMAND_FORMAT = "tf history -noprompt -server:http://tfsserver:8080 $/TeamProjectName/path
        //  -version:D2006-12-01T01:01:01Z~D2006-12-13T20:00:00Z -recursive
        // -format:detailed -login:DOMAIN\name,password"
        private ProcessInfo NewHistoryProcessInfo(IIntegrationResult from, IIntegrationResult to)
        {
            var buffer = new PrivateArguments(
                "history",
                "-noprompt");
            buffer.Add("-server:", Server);
            buffer.AddQuote(ProjectPath);
            buffer.Add(String.Format("-version:D{0}~D{1}", FormatCommandDate(from.StartTime), FormatCommandDate(to.StartTime)));
            buffer.Add("-recursive");
            buffer.Add("-format:detailed");

            if (!string.IsNullOrEmpty(Username) && !string.IsNullOrEmpty(Password.PrivateValue))
            {
                if (!string.IsNullOrEmpty(Domain))
                {
                    Username = Domain + @"\" + Username;
                }

                buffer.Add("-login:" + this.Username, this.Password);
            }

            return NewProcessInfo(buffer, to);
        }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:26,代码来源:Vsts.cs

示例3: NewLabelProcessInfo

 //    LABEL_COMMAND_FORMAT = "label [/server:servername] labelname[@scope] [/owner:ownername]
 //  itemspec [/version:versionspec] [/comment:("comment"|@commentfile)]
 //  [/child:(replace|merge)] [/recursive]"
 private ProcessInfo NewLabelProcessInfo(IIntegrationResult result)
 {
     var buffer = new PrivateArguments(
         "label");
     buffer.Add("/server:", Server);
     buffer.Add(result.Label);
     buffer.AddQuote(WorkingDirectory);
     buffer.Add("/recursive");
     return NewProcessInfo(buffer, result);
 }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:13,代码来源:Vsts.cs

示例4: GetWorkSpaceProcessInfo

 // tf get itemspec [/version:versionspec] [/all] [/overwrite] [/force]
 // [/preview] [/recursive] [/noprompt]
 private ProcessInfo GetWorkSpaceProcessInfo(IIntegrationResult result)
 {
     var buffer = new PrivateArguments(
         "get",
         "/force",
         "/recursive",
         "/noprompt");
     buffer.AddQuote(WorkingDirectory);
     return NewProcessInfo(buffer, result);
 }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:12,代码来源:Vsts.cs

示例5: MapWorkSpaceProcessInfo

 // tf workfold [/map] [/s:servername] [/workspace: workspacename]
 //  repositoryfolder|localfolder
 private ProcessInfo MapWorkSpaceProcessInfo(IIntegrationResult result)
 {
     var buffer = new PrivateArguments(
         "workfold",
         "/map");
     buffer.AddQuote(ProjectPath);
     buffer.AddQuote(WorkingDirectory);
     buffer.Add("/server:", Server);
     buffer.Add("/workspace:", Workspace);
     return NewProcessInfo(buffer, result);
 }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:13,代码来源:Vsts.cs

示例6: CreateWorkSpaceProcessInfo

 // tf workspace /new [/noprompt] [/template:workspacename[;workspaceowner]]
 // [/computer:computername] [/comment:(“comment”|@comment file)]
 // [/s:servername] [workspacename[;workspaceowner]]
 private ProcessInfo CreateWorkSpaceProcessInfo(IIntegrationResult result)
 {
     var buffer = new PrivateArguments(
         "workspace",
         "/new");
     buffer.Add("/computer:", Environment.MachineName);
     buffer.AddQuote("/comment:", DEFAULT_WORKSPACE_COMMENT);
     buffer.Add("/server:", Server);
     buffer.AddQuote(Workspace);
     return NewProcessInfo(buffer, result);
 }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:14,代码来源:Vsts.cs

示例7: DeleteWorkSpaceProcessInfo

 // tf workspaces /delete [/owner:ownername] [/computer:computername]
 // [/server:servername] workspacename
 private ProcessInfo DeleteWorkSpaceProcessInfo(IIntegrationResult result)
 {
     var buffer = new PrivateArguments(
         "workspace",
         "/delete");
     // buffer.Add("/computer:", Environment.MachineName);
     buffer.Add("-server:", Server);
     buffer.AddQuote(Workspace);
     return NewProcessInfo(buffer, result);
 }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:12,代码来源:Vsts.cs

示例8: CheckProjectProcessInfo

        // tf dir [/server:servername] itemspec [/version:versionspec]
        // [/recursive] [/folders] [/deleted]
        private ProcessInfo CheckProjectProcessInfo(IIntegrationResult result)
        {
            var buffer = new PrivateArguments(
                "dir",
                "/folders");
            buffer.Add("/server:", Server);
            buffer.AddQuote(ProjectPath);

            return NewProcessInfo(buffer, result);
        }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:12,代码来源:Vsts.cs

示例9: CheckWorkSpaceProcessInfo

 // tf workspaces [/computer:computername][/server:servername] workspacename
 private ProcessInfo CheckWorkSpaceProcessInfo(IIntegrationResult result)
 {
     var buffer = new PrivateArguments(
         "workspaces");
     buffer.Add("/computer:", Environment.MachineName);
     buffer.Add("-server:", Server);
     buffer.Add("/format:detailed");
     buffer.AddQuote(Workspace);
     return NewProcessInfo(buffer, result);
 }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:11,代码来源:Vsts.cs

示例10: NewHistoryProcessInfo

        //	HISTORY_COMMAND_FORMAT = "tf history -noprompt -server:http://tfsserver:8080 $/TeamProjectName/path
        //  -version:D2006-12-01T01:01:01Z~D2006-12-13T20:00:00Z -recursive
        // -format:detailed /login:DOMAIN\name,password"
        private ProcessInfo NewHistoryProcessInfo(IIntegrationResult from, IIntegrationResult to)
        {
            var buffer = new PrivateArguments("history", "-noprompt");
            buffer.Add("-server:", Server);
            buffer.AddQuote(ProjectPath);
            buffer.Add(string.Format(System.Globalization.CultureInfo.CurrentCulture, "-version:D{0}~D{1}", FormatCommandDate(from.StartTime), FormatCommandDate(to.StartTime)));
            buffer.Add("-recursive");
            buffer.Add("-format:detailed");

            AppendSourceControlAuthentication(buffer);

            return NewProcessInfo(buffer, to);
        }
开发者ID:alexanderyaremchuk,项目名称:CruiseControl.NET,代码行数:16,代码来源:Vsts.cs

示例11: NewLabelProcessInfo

        //	LABEL_COMMAND_FORMAT = "label [/server:servername] labelname[@scope] [/owner:ownername] 
        //  itemspec [/version:versionspec] [/comment:("comment"|@commentfile)] 
        //  [/child:(replace|merge)] [/recursive]"
        private ProcessInfo NewLabelProcessInfo(IIntegrationResult result)
        {
            var buffer = new PrivateArguments("label");
            buffer.Add("/server:", Server);
            buffer.AddQuote(result.Label, string.Format(System.Globalization.CultureInfo.CurrentCulture, "@{0}", ProjectPath));
            buffer.AddQuote(WorkingDirectory);
            buffer.Add("/recursive");
            buffer.Add("/comment:", "CCNet Build Label", true);

            AppendSourceControlAuthentication(buffer);

            return NewProcessInfo(buffer, result);
        }
开发者ID:alexanderyaremchuk,项目名称:CruiseControl.NET,代码行数:16,代码来源:Vsts.cs

示例12: DeleteWorkSpaceProcessInfo

        // tf workspaces /delete [/owner:ownername] [/computer:computername] 
        // [/server:servername] workspacename
        private ProcessInfo DeleteWorkSpaceProcessInfo(IIntegrationResult result)
        {
            var buffer = new PrivateArguments("workspace", "/delete");
            buffer.Add("-server:", Server);
            buffer.AddQuote(Workspace);

            AppendSourceControlAuthentication(buffer);

            return NewProcessInfo(buffer, result);
        }
开发者ID:alexanderyaremchuk,项目名称:CruiseControl.NET,代码行数:12,代码来源:Vsts.cs

示例13: GetWorkSpaceProcessInfo

        // tf get itemspec [/version:versionspec] [/all] [/overwrite] [/force] 
        // [/preview] [/recursive] [/noprompt]
        private ProcessInfo GetWorkSpaceProcessInfo(IIntegrationResult result)
        {
            var buffer = new PrivateArguments(
                "get",
                "/recursive",
                "/noprompt");

            if (Force)
            {
                buffer.Add("/force");
            }

            buffer.AddQuote(WorkingDirectory);

            AppendSourceControlAuthentication(buffer);

            return NewProcessInfo(buffer, result);
        }
开发者ID:alexanderyaremchuk,项目名称:CruiseControl.NET,代码行数:20,代码来源:Vsts.cs

示例14: MapWorkSpaceProcessInfo

        // tf workfold [/map] [/s:servername] [/workspace: workspacename]
        //  repositoryfolder|localfolder
        private ProcessInfo MapWorkSpaceProcessInfo(IIntegrationResult result)
        {
            var buffer = new PrivateArguments("workfold", "/map");
            buffer.AddQuote(ProjectPath);
            buffer.AddQuote(WorkingDirectory);
            buffer.Add("/server:", Server);
            buffer.Add("/workspace:", this.Workspace, true);

            AppendSourceControlAuthentication(buffer);

            return NewProcessInfo(buffer, result);
        }
开发者ID:alexanderyaremchuk,项目名称:CruiseControl.NET,代码行数:14,代码来源:Vsts.cs


注:本文中的ThoughtWorks.CruiseControl.Core.Util.PrivateArguments.AddQuote方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。