env variable expansion needs to happen first if we want to really detect whitespace in arguments correctly

git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@46 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
remotes/git-svn
kohsuke 2010-02-09 19:24:13 +00:00
parent dea77d9804
commit c542409b17
1 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ namespace winsw
foreach (XmlNode argument in dom.SelectNodes("//" + tagName))
{
string token = argument.InnerText;
string token = Environment.ExpandEnvironmentVariables(argument.InnerText);
if (token.StartsWith("\"") && token.EndsWith("\""))
{
// for backward compatibility, if the argument is already quoted, leave it as is.
@ -213,7 +213,7 @@ namespace winsw
arguments += " " + token;
}
return Environment.ExpandEnvironmentVariables(arguments);
return arguments;
}
}