* Mono.Documentation/webdoc.cs: Remove console debug spew. If you run
authorJonathan Pryor <jpryor@novell.com>
Thu, 16 Apr 2009 03:08:40 +0000 (03:08 -0000)
committerJonathan Pryor <jpryor@novell.com>
Thu, 16 Apr 2009 03:08:40 +0000 (03:08 -0000)
  with `mdoc -v`, each URL will be printed as it's processed.

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

mcs/tools/mdoc/ChangeLog
mcs/tools/mdoc/Mono.Documentation/webdoc.cs

index dd978952e7e20358298dffc41880177ee28d0c44..4059924a9b12eef0322384a34de085c65570ec70 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-15  Jonathan Pryor <jpryor@novell.com>
+
+       * Mono.Documentation/webdoc.cs: Remove console debug spew.  If you run
+         with `mdoc -v`, each URL will be printed as it's processed.
+
 2009-04-15  Jonathan Pryor <jpryor@novell.com>
 
        * Mono.Documentation/webdoc.cs: When extracting files from the .zip
index 5c50cd7620d90fd804326b5b2a6c6492cf2f8406..ffcec66ef8a0a6688f15927d52ac701fb2ccb90b 100644 (file)
@@ -76,7 +76,6 @@ namespace Mono.Documentation
                                        files.Select (f => 
                                                        Path.Combine (Path.GetDirectoryName (f), Path.GetFileNameWithoutExtension (f)))
                                        .Distinct ()) {
-                               Console.WriteLine ("# Processing BasePath={0}", basePath);
                                string treeFile = basePath + ".tree";
                                string zipFile  = basePath + ".zip";
                                if (!Exists (treeFile) || !Exists (zipFile))
@@ -85,6 +84,7 @@ namespace Mono.Documentation
                                if (!forceUpdate && Directory.Exists (outDir) &&
                                                        MaxWriteTime (treeFile, zipFile) < Directory.GetLastWriteTime (outDir))
                                        continue;
+                               Message (TraceLevel.Warning, "Processing files: {0}, {1}", treeFile, zipFile);
                                Directory.CreateDirectory (outDir);
                                ExtractZipFile (zipFile, outDir);
                                GenerateCache (basePath, treeFile, outDir);
@@ -113,7 +113,6 @@ namespace Mono.Documentation
                        ZipEntry entry;
                        while ((entry = zip.GetNextEntry ()) != null) {
                                string file = Path.Combine (outDir, entry.Name);
-                               Console.WriteLine ("# Extracting zip entry: {0}; to: {1}", entry.Name, file);
                                Directory.CreateDirectory (Path.GetDirectoryName (file));
                                using (var output = File.OpenWrite (file))
                                        zip.WriteTo (output);
@@ -122,7 +121,6 @@ namespace Mono.Documentation
 
                void GenerateCache (string basePath, string treeFile, string outDir)
                {
-                       Console.WriteLine ("# Tree file={0}", treeFile);
                        Tree tree = new Tree (null, treeFile);
                        RootTree docRoot = RootTree.LoadTree ();
                        string helpSourceName = Path.GetFileName (basePath);
@@ -133,11 +131,10 @@ namespace Mono.Documentation
                        }
                        foreach (Node node in tree.TraverseDepthFirst<Node, Node> (t => t, t => t.Nodes.Cast<Node> ())) {
                                var url = node.URL;
-                               Console.WriteLine ("# NodeUrl={0}", url);
+                               Message (TraceLevel.Info, "\tProcessing URL: {0}", url);
                                if (string.IsNullOrEmpty (url))
                                        continue;
                                var file = XmlDocUtils.GetCachedFileName (outDir, url);
-                               Console.WriteLine ("# file={0}", file);
                                using (var o = File.AppendText (file)) {
                                        Node _;
                                        // Sometimes the HelpSource won't directly support a url.