Beispiel #1
0
 public Bounce(LogOptions logOptions)
 {
     LogFactory = new TaskLogFactory();
     LogOptions = logOptions;
     ShellCommand = new ShellCommandExecutor(() => Log);
     TargetInvoker = new TargetInvoker(this);
 }
Beispiel #2
0
 public Bounce(LogOptions logOptions)
 {
     LogFactory    = new TaskLogFactory();
     LogOptions    = logOptions;
     ShellCommand  = new ShellCommandExecutor(() => Log);
     TargetInvoker = new TargetInvoker(this);
 }
Beispiel #3
0
 public Bounce()
 {
     LogFactory = new TaskLogFactory();
     LogOptions = new LogOptions {CommandOutput = false, LogLevel = LogLevel.Warning, ReportTargetEnd = true};
     ShellCommand = new ShellCommandExecutor(() => Log);
     TargetInvoker = new TargetInvoker(this);
 }
Beispiel #4
0
 public ICommandLog Create(string command, string args, TextWriter stdout, TextWriter stderr, LogOptions logOptions) {
     if (logOptions.CommandOutput) {
         return new CommandLog(command, args, stdout, stderr);
     } else {
         return new NullCommandLog(args);
     }
 }
Beispiel #5
0
 public Log(TextWriter stdout, TextWriter stderr, LogOptions logOptions, ILogMessageFormatter logMessageFormatter)
 {
     Stdout = stdout;
     Stderr = stderr;
     LogOptions = logOptions;
     LogMessageFormatter = logMessageFormatter;
     TaskLog = new TaskLog(stdout, stderr, logOptions);
 }
Beispiel #6
0
 public Log(TextWriter stdout, TextWriter stderr, LogOptions logOptions, ILogMessageFormatter logMessageFormatter)
 {
     Stdout              = stdout;
     Stderr              = stderr;
     LogOptions          = logOptions;
     LogMessageFormatter = logMessageFormatter;
     TaskLog             = new TaskLog(stdout, stderr, logOptions);
 }
Beispiel #7
0
 public Bounce()
 {
     LogFactory = new TaskLogFactory();
     LogOptions = new LogOptions {
         CommandOutput = false, LogLevel = LogLevel.Warning, ReportTargetEnd = true
     };
     ShellCommand  = new ShellCommandExecutor(() => Log);
     TargetInvoker = new TargetInvoker(this);
 }
Beispiel #8
0
 public TaskLog(TextWriter stdOut, TextWriter stdErr, LogOptions logOptions)
 {
     StdOut          = stdOut;
     StdErr          = stdErr;
     this.logOptions = logOptions;
 }
Beispiel #9
0
 public ILog CreateLogForTask(IObsoleteTask task, TextWriter stdout, TextWriter stderr, LogOptions logOptions)
 {
     return(new Log(stdout, stderr, logOptions, new TaskLogMessageFormatter(task)));
 }
Beispiel #10
0
 public ILog CreateLogForTask(IObsoleteTask task, TextWriter stdout, TextWriter stderr, LogOptions logOptions) {
     return new Log(stdout, stderr, logOptions, new TaskLogMessageFormatter(task));
 }
Beispiel #11
0
 public TaskLog(TextWriter stdOut, TextWriter stdErr, LogOptions logOptions) {
     StdOut = stdOut;
     StdErr = stdErr;
     this.logOptions = logOptions;
 }
Beispiel #12
0
 public ICommandLog Create(string command, string args, TextWriter stdout, TextWriter stderr, LogOptions logOptions)
 {
     if (logOptions.CommandOutput)
     {
         return(new CommandLog(command, args, stdout, stderr));
     }
     else
     {
         return(new NullCommandLog(args));
     }
 }