Ejemplo n.º 1
0
 public static void WriteIfError(string line)
 {
     if (IsError(line))
     {
         ConsoleWriter.WriteBuildError(line);
     }
 }
Ejemplo n.º 2
0
 public static void WriteLine(string line)
 {
     if (IsError(line))
     {
         ConsoleWriter.WriteBuildError(line);
     }
     else if (IsWarning(line))
     {
         ConsoleWriter.WriteBuildWarning(line);
     }
     else
     {
         ConsoleWriter.WriteLine(line);
     }
 }
Ejemplo n.º 3
0
        private static void PrintBuildFailResult(Dep dep, string buildName, ShellRunner runner)
        {
            ConsoleWriter.WriteBuildError(
                $"Failed to build {dep.Name}{(dep.Configuration == null ? "" : "/" + dep.Configuration)} {buildName}");
            foreach (var line in runner.Output.Split('\n'))
            {
                ModuleBuilderHelper.WriteLine(line);
            }

            ConsoleWriter.WriteLine();
            ConsoleWriter.WriteInfo("Errors summary:");
            foreach (var line in runner.Output.Split('\n'))
            {
                ModuleBuilderHelper.WriteIfErrorToStandartStream(line);
            }
        }