Skip to content

Commit

Permalink
env variable expansion needs to happen first if we want to really det…
Browse files Browse the repository at this point in the history
…ect whitespace in arguments correctly

git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@46 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
  • Loading branch information
kohsuke committed Feb 9, 2010
1 parent dea77d9 commit c542409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Main.cs
Expand Up @@ -196,7 +196,7 @@ private string AppendTags(string tagName)

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.
Expand All @@ -213,7 +213,7 @@ private string AppendTags(string tagName)
arguments += " " + token;
}

return Environment.ExpandEnvironmentVariables(arguments);
return arguments;
}
}

Expand Down

0 comments on commit c542409

Please sign in to comment.