コード例 #1
0
ファイル: ProcessManager.cs プロジェクト: petertiedemann/nuke
        public virtual IProcess StartProcess(ToolSettings toolSettings)
        {
            var arguments = toolSettings.GetArguments();

            return(StartProcess(toolSettings.ToolPath,
                                arguments.RenderForExecution(),
                                arguments.RenderForOutput(),
                                toolSettings.WorkingDirectory,
                                toolSettings.EnvironmentVariables,
                                toolSettings.ExecutionTimeout,
                                toolSettings.LogOutput,
                                toolSettings.LogLevelParser,
                                arguments.FilterSecrets));
        }
コード例 #2
0
        public static IProcess StartProcess(ToolSettings toolSettings)
        {
            var arguments = toolSettings.GetArguments();

            return(StartProcess(toolSettings.ToolPath,
                                arguments.RenderForExecution(),
                                toolSettings.WorkingDirectory,
                                toolSettings.EnvironmentVariables,
                                toolSettings.ExecutionTimeout,
                                toolSettings.LogOutput,
                                toolSettings.LogInvocation,
                                toolSettings.CustomLogger,
                                arguments.FilterSecrets));
        }
コード例 #3
0
        public override IProcess StartProcess(ToolSettings toolSettings, ProcessSettings processSettings = null)
        {
            var toolPath  = toolSettings.ToolPath;
            var arguments = toolSettings.GetArguments();

            ControlFlow.Assert(toolPath != null, "ToolPath was not set.");
            ControlFlow.Assert(File.Exists(toolPath), $"ToolPath '{toolPath}' does not exist.");

            processSettings = processSettings ?? new ProcessSettings();
            return(StartProcess(
                       toolPath,
                       arguments.RenderForExecution(),
                       toolSettings.WorkingDirectory,
                       processSettings.EnvironmentVariables,
                       processSettings.ExecutionTimeout,
                       processSettings.RedirectOutput,
                       processSettings.RedirectOutput ? new Func <string, string>(arguments.Filter) : null));
        }
コード例 #4
0
 public static IProcess StartProcess(ToolSettings toolSettings)
 {
     return(ProcessManager.Instance.StartProcess(toolSettings));
 }