Bugs item #1911292, was opened at 2008-03-10 18:11
Message generated for change (Comment added) made by cchan_qa
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1911292&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Eberhard Beilharz (eberhard)
Assigned to: Nobody/Anonymous (nobody)
Summary: xmlpeek too verbose

Initial Comment:
The XmlPeek task uses Level.Info to output status messages. This makes it 
impossible to work it silently. \

It should use Level.Verbose.

----------------------------------------------------------------------

Comment By: Charles (cchan_qa)
Date: 2010-01-09 03:47

Message:
Index: XmlPeekTask.cs
===================================================================
RCS file: /cvsroot/nant/nant/src/NAnt.Core/Tasks/XmlPeekTask.cs,v
retrieving revision 1.11
diff -u -8 -p -r1.11 XmlPeekTask.cs
--- XmlPeekTask.cs    4 Apr 2005 12:08:29 -0000    1.11
+++ XmlPeekTask.cs    9 Jan 2010 03:38:49 -0000
@@ -141,17 +141,17 @@ namespace NAnt.Core.Tasks {
         #endregion Public Instance Properties
 
         #region Override implementation of Task
 
         /// <summary>
         /// Executes the XML peek task.
         /// </summary>
         protected override void ExecuteTask() {
-            Log(Level.Info, "Peeking at '{0}' with XPath expression
'{1}'.",
+            Log(Level.Verbose, "Peeking at '{0}' with XPath expression
'{1}'.",
                 XmlFile.FullName,  XPath);
 
             // ensure the specified xml file exists
             if (!XmlFile.Exists) {
                 throw new
BuildException(string.Format(CultureInfo.InvariantCulture,
                                                       
ResourceUtils.GetString("NA1154"), XmlFile.FullName), Location);
             }
 
@@ -221,17 +221,17 @@ namespace NAnt.Core.Tasks {
             }
 
             if (nodes == null || nodes.Count == 0) {
                 throw new
BuildException(string.Format(CultureInfo.InvariantCulture,
                     ResourceUtils.GetString("NA1156"), xpath),
                     Location);
             }
 
-            Log(Level.Info, "Found '{0}' nodes with the XPath expression
'{1}'.",
+            Log(Level.Verbose, "Found '{0}' nodes with the XPath
expression '{1}'.",
                 nodes.Count, xpath);
          
             if (nodeIndex >= nodes.Count){
                 throw new
BuildException(string.Format(CultureInfo.InvariantCulture,
                     ResourceUtils.GetString("NA1157"), nodeIndex),
Location);
             }
            
             XmlNode selectedNode = nodes[nodeIndex];

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1911292&group_id=31650

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to