Skip to content
Browse files

env variable expansion needs to happen first if we want to really det…

…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...
1 parent dea77d9 commit c542409b1703870923c782556cb19280af76ff46 kohsuke committed Feb 9, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Main.cs
View
4 Main.cs
@@ -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.
@@ -213,7 +213,7 @@ private string AppendTags(string tagName)
arguments += " " + token;
}
- return Environment.ExpandEnvironmentVariables(arguments);
+ return arguments;
}
}

0 comments on commit c542409

Please sign in to comment.
Something went wrong with that request. Please try again.