Ejemplo n.º 1
0
 public void Starting(Command info)
 {
     _writer.WriteLine("<html>");
     _writer.WriteLine("<head>");
     _writer.WriteLine("<style>");
     var ass = System.Reflection.Assembly.GetExecutingAssembly();
     using(var stream = ass.GetManifestResourceStream("BuildTool.HtmlOutputHandler.css"))
     {
         int b;
         stream.ReadByte();
         stream.ReadByte();
         stream.ReadByte();
         while((b = stream.ReadByte()) >= 0)
         {
             _writer.Write(((char)b));
         }
     }
     _writer.WriteLine("\n</style>");
     _writer.WriteLine("</head>");
     _writer.WriteLine("<body>");
     _writer.WriteLine("<div class='header'>");
     _writer.WriteLine("<div class='start'>");
     _writer.WriteLine(string.Format("<div class='fileName'>{0}</div><div class='args'>{1}</div>", info.FileName, info.Arguments));
     _writer.WriteLine("</div>");
     _writer.WriteLine("</div>");
     _writer.WriteLine("<table class='output' cellspacing='0'>");
     _writer.Flush();
 }
Ejemplo n.º 2
0
 void IOutputHandler.Starting(Command info)
 {
 }
 public void Starting(Command info)
 {
     _standardOut.WriteLine(string.Format("STARTING PROCESS: {0} {1}", info.FileName, info.Arguments));
     _standardOut.WriteLine("-------------------------------------------------------------------------------------");
     _standardOut.Flush();
 }
Ejemplo n.º 4
0
 public void Starting(Command info)
 {
     handler.Starting(info);
 }
Ejemplo n.º 5
0
 public ProcessWrapper(Command command, string workingDir, IOutputHandler outputHandlers)
 {
     _command = command;
     _workingDir = workingDir;
     _outputHandler = outputHandlers;
 }