Beispiel #1
0
        public override void Setup(Context context, ITaskSetupContext info)
        {
            // Report progress to TeamCity
            if (context.BuildSystem().TeamCity.IsRunningOnTeamCity)
            {
                context.BuildSystem().TeamCity.WriteStartBlock($"Task: {info.Task.Name}");
            }

            base.Setup(context, info);
        }
Beispiel #2
0
 /// <summary>
 /// Performs the specified setup action before each task is invoked.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <param name="taskSetupContext">The context.</param>
 public void PerformTaskSetup(Action <ITaskSetupContext> action, ITaskSetupContext taskSetupContext)
 {
     if (taskSetupContext == null)
     {
         throw new ArgumentNullException(nameof(taskSetupContext));
     }
     if (action != null)
     {
         _log.Debug("Executing custom task setup action ({0})...", taskSetupContext.Task.Name);
         action(taskSetupContext);
     }
 }
        /// <summary>
        /// Performs the specified setup action before each task is invoked.
        /// </summary>
        /// <param name="action">The action.</param>
        /// <param name="context">The context.</param>
        /// <param name="setupContext">The setup context.</param>
        public void PerformTaskSetup(Action <ICakeContext, ITaskSetupContext> action, ICakeContext context, ITaskSetupContext setupContext)
        {
            if (setupContext == null)
            {
                throw new ArgumentNullException("setupContext");
            }

            if (action != null)
            {
                _log.Information(string.Empty);
                _log.Information("----------------------------------------");
                _log.Information("Task Setup ({0})", setupContext.Task.Name);
                _log.Information("----------------------------------------");
                _log.Verbose("Executing custom task setup action ({0})...", setupContext.Task.Name);

                action(context, setupContext);
            }
        }
Beispiel #4
0
 public void PerformTaskSetup(Action <ITaskSetupContext> action, ITaskSetupContext taskSetupContext)
 {
 }
Beispiel #5
0
 public override void Setup(ICakeContext context, ITaskSetupContext info)
 {
     SetupCount++;
 }
Beispiel #6
0
 public void PerformTaskSetup(Action <ICakeContext, ITaskSetupContext> action, ICakeContext context, ITaskSetupContext setupContext)
 {
 }
 /// <summary>
 /// Performs the specified setup action before each task is invoked.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <param name="taskSetupContext">The context.</param>
 public void PerformTaskSetup(Action <ITaskSetupContext> action, ITaskSetupContext taskSetupContext)
 {
     _default.PerformTaskSetup(action, taskSetupContext);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BeforeTaskSetupEventArgs"/> class.
 /// </summary>
 /// <param name="taskSetupContext">The task setup context.</param>
 public BeforeTaskSetupEventArgs(ITaskSetupContext taskSetupContext)
 {
     TaskSetupContext = taskSetupContext;
 }
Beispiel #9
0
    public override void Setup(Context context, ITaskSetupContext info)
    {
        var message = $"Task: {info.Task.Name}";

        context.StartGroup(message);
    }
Beispiel #10
0
 public override void Setup(ICakeContext context, ITaskSetupContext info) => context.StartGroup($"Task: {info.Task.Name}");
Beispiel #11
0
 /// <summary>
 /// Performs the specified setup action before each task is invoked.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <param name="context">The context.</param>
 /// <param name="setupContext">The setup context.</param>
 public void PerformTaskSetup(Action <ICakeContext, ITaskSetupContext> action, ICakeContext context, ITaskSetupContext setupContext)
 {
     if (setupContext == null)
     {
         throw new ArgumentNullException("setupContext");
     }
     if (action != null)
     {
         _log.Debug("Executing custom task setup action ({0})...", setupContext.Task.Name);
         action(context, setupContext);
     }
 }
 public override void Setup(ICakeContext context, ITaskSetupContext info)
 {
     CalledSetup = true;
 }
Beispiel #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AfterTaskSetupEventArgs"/> class.
 /// </summary>
 /// <param name="taskSetupContext">The task setup context.</param>
 public AfterTaskSetupEventArgs(ITaskSetupContext taskSetupContext)
 {
     TaskSetupContext = taskSetupContext;
 }