/// <summary> /// Executes the task. /// </summary> protected override void ExecuteTask() { if (ShouldSkipTaskExecution) { return; } Log(Level.Info, "Reporting statistic values from properties starting with '{0}' (case {1}sensitive)", PropertiesStartingWith, IgnoreCase ? "in" : String.Empty); if (Properties == null) { return; } foreach (DictionaryEntry property in Properties) { if (!property.Key.ToString().StartsWith(PropertiesStartingWith, PropertyKeyComparison)) { continue; } Log(Level.Info, "Reporting build statistic value. Key={0} Value={1}", property.Key, property.Value); MessageProvider.BuildStatisticValue(property.Key.ToString(), property.Value.ToString()); } }
/// <summary> /// Executes the task. /// </summary> protected override void ExecuteTask() { if (ShouldSkipTaskExecution) { return; } Log(Level.Info, "Reporting build statistic value. Key={0} Value={1}", Key, Value); MessageProvider.BuildStatisticValue(Key, Value); }
/// <summary> /// Executes the task. /// </summary> protected override void ExecuteTask() { if (ShouldSkipTaskExecution) { return; } Log(Level.Info, "Reporting build statistic values. Keys and values={0}", KeyValuePairs); foreach (string kvp in KeyValuePairs.Split(new[] { ';' })) { string[] keyAndValue = kvp.Split(new[] { '=' }); if (keyAndValue.Length > 1) { MessageProvider.BuildStatisticValue(keyAndValue[0], keyAndValue[1]); } } }