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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #4
0
 public static IProcess StartProcess(ToolSettings toolSettings)
 {
     return(ProcessManager.Instance.StartProcess(toolSettings));
 }