public void LogTargetStarted(IFlubuRunnerTarget target)
 {
     foreach (IFlubuLogger logger in loggers)
     {
         logger.LogTargetStarted(target);
     }
 }
Example #2
0
 public void LogTargetFinished(IFlubuRunnerTarget target)
 {
     if (this.projectTargetStack.Count > 0)
     {
         this.projectTargetStack.Pop();
     }
 }
 public void LogTargetFinished(IFlubuRunnerTarget target)
 {
     executionDepthCounter--;
     WriteLine(
         ConsoleColor.White,
         "{0} finished (took {1} seconds)",
         target.TargetName,
         (int)target.TargetStopwatch.Elapsed.TotalSeconds);
 }
Example #4
0
 public void LogTargetFinished(IFlubuRunnerTarget target)
 {
     log.InfoFormat(
         CultureInfo.InvariantCulture,
         "{0} finished (took {1} seconds)",
         target.TargetName,
         (int)target.TargetStopwatch.Elapsed.TotalSeconds);
     executionDepthCounter--;
 }
Example #5
0
        /// <summary>
        /// Runs the specified target.
        /// </summary>
        /// <param name="targetName">Name of the target.</param>
        /// <returns>The same instance of this <see cref="TRunner"/>.</returns>
        public TRunner RunTarget(string targetName)
        {
            if (false == Targets.ContainsKey(targetName))
            {
                throw new ArgumentException(FormatString("The target '{0}' does not exist", targetName));
            }

            IFlubuRunnerTarget target = Targets[targetName];

            target.Execute();

            return(ReturnThisTRunner());
        }
Example #6
0
        public TRunner EnsureDependenciesExecuted(string targetName)
        {
            IFlubuRunnerTarget target = Targets[targetName];

            foreach (string dependency in target.Dependencies)
            {
                if (false == executedTargets.ContainsKey(dependency))
                {
                    RunTarget(dependency);
                }
            }

            return(ReturnThisTRunner());
        }
 public void LogTargetStarted(IFlubuRunnerTarget target)
 {
     WriteLine(ConsoleColor.White, String.Empty);
     WriteLine(ConsoleColor.White, "{0}:", target.TargetName);
     executionDepthCounter++;
 }
Example #8
0
 public void LogTargetStarted(IFlubuRunnerTarget target)
 {
     this.projectTargetStack.Push(FormatMessage("Starting Target {0}", target.TargetName));
     this.messageQueue.Clear();
     WriteQueueData();
 }
Example #9
0
 public void LogTargetStarted(IFlubuRunnerTarget target)
 {
     log.InfoFormat(CultureInfo.InvariantCulture, "{0}:", target.TargetName);
     executionDepthCounter++;
 }