• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Util.ProcessExecutor类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



ProcessExecutor类属于ThoughtWorks.CruiseControl.Core.Util命名空间,在下文中一共展示了ProcessExecutor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Mks

        /// <summary>
        /// Initializes a new instance of the <see cref="Mks" /> class.	
        /// </summary>
        /// <param name="parser">The parser.</param>
        /// <param name="executor">The executor.</param>
        /// <remarks></remarks>
		public Mks(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor)
		{
            this.Executable = DefaultExecutable;
            this.AutoGetSource = DefaultAutoGetSource;
            this.AutoDisconnect = DefaultAutoDisconnect;
            this.Port = DefaultPort;
		}
开发者ID:BiYiTuan,项目名称:CruiseControl.NET,代码行数:13,代码来源:Mks.cs


示例2: Mks

 public Mks(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
     executable = "si.exe";
     port = 8722;
     autoGetSource = false;
 }
开发者ID:vardars,项目名称:ci-factory,代码行数:7,代码来源:Mks.cs


示例3: P4

 public P4()
 {
     processExecutor = new ProcessExecutor();
     processInfoCreator = new P4ConfigProcessInfoCreator();
     p4Initializer = new ProcessP4Initializer(processExecutor, processInfoCreator);
     p4Purger = new ProcessP4Purger(processExecutor, processInfoCreator);
 }
开发者ID:vardars,项目名称:ci-factory,代码行数:7,代码来源:P4.cs


示例4: NCoverProfileTask

 /// <summary>
 /// Initialise a new <see cref="NCoverProfileTask"/> with a <see cref="ProcessExecutor"/>.
 /// </summary>
 /// <param name="executor"></param>
 public NCoverProfileTask(ProcessExecutor executor)
 {
     this.executor = executor;
     this.Publish = true;
     this.TimeOut = 600;
     this.LogLevel = NCoverLogLevel.Default;
 }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:11,代码来源:NCoverProfileTask.cs


示例5: UpdateConfigurationTask

 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateConfigurationTask"/> class.
 /// </summary>
 /// <param name="executor">The executor to use.</param>
 public UpdateConfigurationTask(ProcessExecutor executor)
 {
     this.executor = executor;
     this.TimeOut = 600;
     this.Priority = ProcessPriorityClass.Normal;
     this.ValidateFile = true;
 }
开发者ID:robrich,项目名称:CruiseControl.NET,代码行数:11,代码来源:UpdateConfigurationTask.cs


示例6: RobocopySourceControl

 /// <summary>
 /// Initializes a new instance of the <see cref="RobocopySourceControl" /> class.	
 /// </summary>
 /// <param name="parser">The parser.</param>
 /// <param name="executor">The executor.</param>
 /// <remarks></remarks>
 public RobocopySourceControl(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
     this.Executable = "C:\\Windows\\System32\\robocopy.exe";
     this.AutoGetSource = false;
     this.WorkingDirectory = string.Empty;
     this.AdditionalArguments = string.Empty;
 }
开发者ID:kyght,项目名称:CruiseControl.NET,代码行数:14,代码来源:RobocopySourceControl.cs


示例7: NCoverProfileTask

 /// <summary>
 /// Initialise a new <see cref="NCoverProfileTask"/> with a <see cref="ProcessExecutor"/>.
 /// </summary>
 /// <param name="executor"></param>
 public NCoverProfileTask(ProcessExecutor executor)
 {
     this.executor = executor;
     this.Publish = true;
     this.TimeOut = 600;
     this.LogLevel = NCoverLogLevel.Default;
     this.Priority = ProcessPriorityClass.Normal;
 }
开发者ID:kascomp,项目名称:CruiseControl.NET,代码行数:12,代码来源:NCoverProfileTask.cs


示例8: CodeItRightTask

 /// <summary>
 /// Initializes a new instance of the <see cref="CodeItRightTask"/> class.
 /// </summary>
 /// <param name="executor">The executor.</param>
 public CodeItRightTask(ProcessExecutor executor)
 {
     this.executor = executor;
     this.Executable = CodeItRightTask.DefaultExecutable;
     this.TimeOut = 600;
     this.ReportingThreshold = Severity.None;
     this.FailureThreshold = Severity.None;
     this.Priority = ProcessPriorityClass.Normal;
 }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:13,代码来源:CodeItRightTask.cs


示例9: NCoverReportTask

 /// <summary>
 /// Initialise a new <see cref="NCoverReportTask"/> with a <see cref="ProcessExecutor"/>.
 /// </summary>
 /// <param name="executor"></param>
 public NCoverReportTask(ProcessExecutor executor)
 {
     this.executor = executor;
     this.XmlReportFilter = NCoverReportFilter.Default;
     this.TimeOut = 600;
     this.NumberToReport = -1;
     this.SortBy = NCoverSortBy.None;
     this.MergeMode = NCoverMergeMode.Default;
 }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:13,代码来源:NCoverReportTask.cs


示例10: CruiseControlHgProcess

        public CruiseControlHgProcess(ProcessExecutor processExecutor)
        {
            if (processExecutor == null)
            {
                throw new ArgumentNullException("processExecutor");
            }

            _processExecutor = processExecutor;
        }
开发者ID:davidsidlinger,项目名称:ccnet-hg-nosuck,代码行数:9,代码来源:CruiseControlHgProcess.cs


示例11: MsBuildTask

        /// <summary>
        /// Initializes a new instance of the <see cref="MsBuildTask" /> class.	
        /// </summary>
        /// <param name="executor">The executor.</param>
        /// <param name="executionEnvironment">The execution environment.</param>
        /// <param name="shadowCopier">The shadow copier.</param>
        /// <remarks></remarks>
		public MsBuildTask(ProcessExecutor executor, IExecutionEnvironment executionEnvironment, IShadowCopier shadowCopier)
		{
			this.executor = executor;
			this.executionEnvironment = executionEnvironment;
			this.shadowCopier = shadowCopier;

			this.Executable = GetDefaultExecutable();
            this.Timeout = DefaultTimeout;
            this.Priority = ProcessPriorityClass.Normal;
        }
开发者ID:robrich,项目名称:CruiseControl.NET,代码行数:17,代码来源:MsBuildTask.cs


示例12: CreateExecutor

		protected void CreateExecutor()
		{
			executor = new ProcessExecutor();
			if (Thread.CurrentThread.Name == null)
			{
				Thread.CurrentThread.Name = PROJECT_NAME;
			}
			runnerThreadCompletedNormally = false;
			runnerThreadWasAborted = false;
		}
开发者ID:kascomp,项目名称:CruiseControl.NET,代码行数:10,代码来源:ProcessExecutorTest.cs


示例13: RunSvnProcess

        public static ProcessResult RunSvnProcess(SvnOptions svnLoginOptions, ProcessArgumentBuilder argBuilder)
        {
            argBuilder.AddArgument("--non-interactive");
            argBuilder.AddArgument("--no-auth-cache");

            ProcessInfo info = new ProcessInfo("svn.exe", argBuilder.ToString());

            ProcessExecutor executor = new ProcessExecutor();
            ProcessResult result = executor.Execute(info);
            return result;
        }
开发者ID:nfrey,项目名称:qreal,代码行数:11,代码来源:SvnProcessHelper.cs


示例14: NUnitTask

 /// <summary>
 /// Initializes a new instance of the <see cref="NUnitTask" /> class.	
 /// </summary>
 /// <param name="exec">The exec.</param>
 /// <remarks></remarks>
 public NUnitTask(ProcessExecutor exec)
 {
     executor = exec;
     this.Assemblies = new string[0];
     this.NUnitPath = DefaultPath;
     this.OutputFile = DefaultOutputFile;
     this.Timeout = DefaultTimeout;
     this.Priority = ProcessPriorityClass.Normal;
     this.ExcludedCategories = new string[0];
     this.IncludedCategories = new string[0];
 }
开发者ID:kascomp,项目名称:CruiseControl.NET,代码行数:16,代码来源:NUnitTask.cs


示例15: SynergyCommand

		/// <summary>
		///     Default constructor.  Initializes all members to their default values.
		/// </summary>
		public SynergyCommand(SynergyConnectionInfo connectionInfo, SynergyProjectInfo projectInfo)
		{
			/*disposed = false*/;
			/*isOpen = false*/;
			executor = new ProcessExecutor();
			connection = connectionInfo;
			project = projectInfo;

			// register for server shutdown, to close all connections
			AppDomain.CurrentDomain.DomainUnload += new EventHandler(AppDomain_Unload);
			AppDomain.CurrentDomain.ProcessExit += new EventHandler(AppDomain_Unload);
		}
开发者ID:BiYiTuan,项目名称:CruiseControl.NET,代码行数:15,代码来源:SynergyCommand.cs


示例16: PlasticSCM

 /// <summary>
 /// Initializes a new instance of the <see cref="PlasticSCM" /> class.	
 /// </summary>
 /// <param name="parser">The parser.</param>
 /// <param name="executor">The executor.</param>
 /// <remarks></remarks>
 public PlasticSCM(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
     this.AutoGetSource = true;
     this.Executable = DefaultPlasticExecutable;
     this.Branch = string.Empty;
     this.Repository = string.Empty;
     this.WorkingDirectory = string.Empty;
     this.LabelOnSuccess = false;
     this.LabelPrefix = "ccver-";
     this.Forced = false;
 }
开发者ID:kascomp,项目名称:CruiseControl.NET,代码行数:18,代码来源:PlasticSCM.cs


示例17: Pvcs

 /// <summary>
 /// Initializes a new instance of the <see cref="Pvcs" /> class.	
 /// </summary>
 /// <param name="parser">The parser.</param>
 /// <param name="executor">The executor.</param>
 /// <remarks></remarks>
 public Pvcs(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
     this.Executable = "pcli.exe";
     this.Username = string.Empty;
     this.Password = string.Empty;
     this.WorkingDirectory = string.Empty;
     this.Workspace = "/@/RootWorkspace";
     this.Recursive = true;
     this.LabelOnSuccess = false;
     this.AutoGetSource = true;
     this.ManuallyAdjustForDaylightSavings = false;
 }
开发者ID:kascomp,项目名称:CruiseControl.NET,代码行数:19,代码来源:Pvcs.cs


示例18: DeleteDirectoryWithLongPath

        /// <summary>
        /// Deletes a directory on Windows with a commandline call.
        /// 
        /// Reason:
        /// .NET only supports filenames up to 260 characters long for backwards compability
        /// read more at: http://blogs.msdn.com/bclteam/archive/2007/02/13/long-paths-in-net-part-1-of-3-kim-hamilton.aspx
        /// this is a Windows only limitation
        /// </summary>
        /// <param name="path">Path to delete.</param>
        static void DeleteDirectoryWithLongPath(string path)
        {
            Log.Info("[IoService] Try running 'cmd.exe /C RD /S /Q' to delete '{0}'", path);

            // call a commandline delete as fallback
            var executor = new ProcessExecutor();
            var processInfo = new ProcessInfo("cmd.exe",
                string.Concat("/C RD /S /Q ", StringUtil.AutoDoubleQuoteString(path)));

            var pr = executor.Execute(processInfo);
            if (pr.Failed)
                throw new CruiseControlException(string.Format("Unable to delete path '{0}'.", path));
        }
开发者ID:derrills1,项目名称:ccnet_gitmode,代码行数:22,代码来源:IoService.cs


示例19: HgSourceControl

        public HgSourceControl(HgXmlLogParser hgXmlLogParser, ProcessExecutor executor)
            : base(hgXmlLogParser.ToHistoryParser(), executor)
        {
            if (hgXmlLogParser == null)
            {
                throw new ArgumentNullException("hgXmlLogParser");
            }
            if (executor == null)
            {
                throw new ArgumentNullException("executor");
            }

            _hgXmlLogParser = hgXmlLogParser;

            SetDefaults();
        }
开发者ID:davidsidlinger,项目名称:ccnet-hg-nosuck,代码行数:16,代码来源:HgSourceControl.cs


示例20: SetUp

		public void SetUp()
		{
			sandboxRoot = TempFileUtil.GetTempPath("MksSandBox");

			mockHistoryParserWrapper = new DynamicMock(typeof (IHistoryParser));
			mockHistoryParser = (IHistoryParser) mockHistoryParserWrapper.MockInstance;

			mksHistoryParserWrapper = new DynamicMock(typeof (MksHistoryParser));
			mksHistoryParser = (MksHistoryParser) mksHistoryParserWrapper.MockInstance;

			mockExecutorWrapper = new DynamicMock(typeof (ProcessExecutor));
			mockProcessExecutor = (ProcessExecutor) mockExecutorWrapper.MockInstance;

			mockIntegrationResult = new DynamicMock(typeof (IIntegrationResult));
			integrationResult = (IIntegrationResult) mockIntegrationResult.MockInstance;
		}
开发者ID:kascomp,项目名称:CruiseControl.NET,代码行数:16,代码来源:MksTest.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Util.ProcessInfo类代码示例发布时间:2022-05-26
下一篇:
C# Util.ProcessArgumentBuilder类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap