From 8b650f865efb0603b184ba6b650ba5711b0bb30b Mon Sep 17 00:00:00 2001 From: kohsuke Date: Mon, 17 Nov 2008 01:20:40 +0000 Subject: [PATCH] Doc improvement. git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@15 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa --- Main.cs | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Main.cs b/Main.cs index e378192..e3dfeff 100644 --- a/Main.cs +++ b/Main.cs @@ -22,8 +22,15 @@ namespace winsw /// /// Where did we find the configuration file? + /// + /// This string is "c:\abc\def\ghi" when the configuration XML is "c:\abc\def\ghi.xml" /// public readonly string BasePath; + /// + /// The file name portion of the configuration file. + /// + /// In the above example, this would be "ghi". + /// public readonly string BaseName; public static string ExecutablePath @@ -136,6 +143,10 @@ namespace winsw } } + /// + /// Combines the contents of all the elements of the given name, + /// or return null if no element exists. + /// private string AppendTags(string tagName) { XmlNode argumentNode = dom.SelectSingleNode("//" + tagName); @@ -165,14 +176,15 @@ namespace winsw get { XmlNode loggingNode = dom.SelectSingleNode("//logpath"); - string logDirectory = Path.GetDirectoryName(ExecutablePath); if (loggingNode != null) { - logDirectory = loggingNode.InnerText; + return loggingNode.InnerText; + } + else + { + return Path.GetDirectoryName(ExecutablePath); } - - return logDirectory; } }