* ToolTask.cs (ExecuteTool): Use LogToolCommand, instead of
authorAnkit Jain <radical@corewars.org>
Mon, 28 Sep 2009 19:18:07 +0000 (19:18 -0000)
committerAnkit Jain <radical@corewars.org>
Mon, 28 Sep 2009 19:18:07 +0000 (19:18 -0000)
directly logging.
(LogToolCommand): Implement.

svn path=/trunk/mcs/; revision=142789

mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ChangeLog
mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs

index e70c1157f43d7c4212cba6c179cffb68fc62ba56..2b7f95d8d94f92ca701551348534707c043a1aa5 100644 (file)
@@ -1,3 +1,9 @@
+2009-09-29  Ankit Jain  <jankit@novell.com>
+
+       * ToolTask.cs (ExecuteTool): Use LogToolCommand, instead of
+       directly logging.
+       (LogToolCommand): Implement.
+
 2009-09-28  Ankit Jain  <jankit@novell.com>
 
        * ToolTask.cs (ProcessOuputTool): Move logging of tool
index 1f02d641d619bd4cb7b14046247e8c1f10b4ac59..a3f4493913571c1a38b721e3f05478637df0d245 100644 (file)
@@ -138,8 +138,8 @@ namespace Microsoft.Build.Utilities
                                        arguments = arguments + " " + GetResponseFileSwitch (responseFileName);
                                }
 
-                               Log.LogMessage (MessageImportance.Normal, "Tool {0} execution started with arguments: {1} {2}",
-                                               pathToTool, commandLineCommands, responseFileCommands);
+                               LogToolCommand (String.Format ("Tool {0} execution started with arguments: {1} {2}",
+                                               pathToTool, commandLineCommands, responseFileCommands));
 
                                output = Path.GetTempFileName ();
                                error = Path.GetTempFileName ();
@@ -345,6 +345,7 @@ namespace Microsoft.Build.Utilities
                [MonoTODO]
                protected virtual void LogToolCommand (string message)
                {
+                       Log.LogMessage (MessageImportance.Normal, message);
                }
                
                [MonoTODO]