本文整理汇总了C#中ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor类的典型用法代码示例。如果您正苦于以下问题:C# ProcessExecutor类的具体用法?C# ProcessExecutor怎么用?C# ProcessExecutor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProcessExecutor类属于ThoughtWorks.CruiseControl.Core.Util命名空间,在下文中一共展示了ProcessExecutor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例2: Mks
public Mks(IHistoryParser parser, ProcessExecutor executor)
: base(parser, executor)
{
executable = "si.exe";
port = 8722;
autoGetSource = false;
}
示例3: P4
public P4()
{
processExecutor = new ProcessExecutor();
processInfoCreator = new P4ConfigProcessInfoCreator();
p4Initializer = new ProcessP4Initializer(processExecutor, processInfoCreator);
p4Purger = new ProcessP4Purger(processExecutor, processInfoCreator);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例10: CruiseControlHgProcess
public CruiseControlHgProcess(ProcessExecutor processExecutor)
{
if (processExecutor == null)
{
throw new ArgumentNullException("processExecutor");
}
_processExecutor = processExecutor;
}
示例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;
}
示例12: CreateExecutor
protected void CreateExecutor()
{
executor = new ProcessExecutor();
if (Thread.CurrentThread.Name == null)
{
Thread.CurrentThread.Name = PROJECT_NAME;
}
runnerThreadCompletedNormally = false;
runnerThreadWasAborted = false;
}
示例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;
}
示例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];
}
示例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);
}