mirror of https://github.com/winsw/winsw
parent
2ffdbde6a9
commit
ed0633b53f
|
@ -190,20 +190,12 @@ namespace winsw
|
||||||
|
|
||||||
if (arguments == null)
|
if (arguments == null)
|
||||||
{
|
{
|
||||||
var tagName = "arguments";
|
var argumentsNode = dom.SelectSingleNode("//arguments");
|
||||||
var argumentsNode = dom.SelectSingleNode("//" + tagName);
|
|
||||||
|
|
||||||
if (argumentsNode == null)
|
if (argumentsNode == null)
|
||||||
{
|
|
||||||
if (AppendTags("startargument") == null)
|
|
||||||
{
|
|
||||||
throw new InvalidDataException("<" + tagName + "> is missing in configuration XML");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return Environment.ExpandEnvironmentVariables(argumentsNode.InnerText);
|
return Environment.ExpandEnvironmentVariables(argumentsNode.InnerText);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue