Exemplo n.º 1
0
        public string Execute(bool debug, IEnumerable <string> args, IEnumerable <string> scriptArgs)
        {
            var debugArgs =
                debug &&
                !args.Select(arg => arg.Trim().ToUpperInvariant()).Contains("-DEBUG") &&
                !args.Select(arg => arg.Trim().ToUpperInvariant()).Contains("-D")
                ? new[] { "-debug" }
                : new string[0];

            return(ScriptCsExe.Execute(
                       new[] { this.name }.Concat(debugArgs).Concat(args), scriptArgs, this.log, directory));
        }
Exemplo n.º 2
0
 public string Execute(params string[] scriptArgs)
 {
     return(ScriptCsExe.Execute(new[] { this.name, "-debug" }, scriptArgs, this.log, directory));
 }