mirror of https://github.com/winsw/winsw
Doc improvement.
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@15 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308faremotes/git-svn
parent
afab25eba5
commit
8b650f865e
20
Main.cs
20
Main.cs
|
@ -22,8 +22,15 @@ namespace winsw
|
|||
|
||||
/// <summary>
|
||||
/// Where did we find the configuration file?
|
||||
///
|
||||
/// This string is "c:\abc\def\ghi" when the configuration XML is "c:\abc\def\ghi.xml"
|
||||
/// </summary>
|
||||
public readonly string BasePath;
|
||||
/// <summary>
|
||||
/// The file name portion of the configuration file.
|
||||
///
|
||||
/// In the above example, this would be "ghi".
|
||||
/// </summary>
|
||||
public readonly string BaseName;
|
||||
|
||||
public static string ExecutablePath
|
||||
|
@ -136,6 +143,10 @@ namespace winsw
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Combines the contents of all the elements of the given name,
|
||||
/// or return null if no element exists.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue