expand environment variables

git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@31 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
remotes/git-svn
kohsuke 2009-02-13 19:18:17 +00:00
parent b8dbc77d7e
commit 5177de8b66
1 changed files with 3 additions and 3 deletions

View File

@ -403,8 +403,8 @@ namespace winsw
internal Download(XmlNode n) internal Download(XmlNode n)
{ {
From = n.Attributes["from"].Value; From = Environment.ExpandEnvironmentVariables(n.Attributes["from"].Value);
To = n.Attributes["to"].Value; To = Environment.ExpandEnvironmentVariables(n.Attributes["to"].Value);
} }
public void Perform() public void Perform()
@ -617,7 +617,7 @@ namespace winsw
} }
catch (Exception e) catch (Exception e)
{ {
LogEvent("Failed to download " + d.From, EventLogEntryType.Warning); WriteEvent("Failed to download " + d.From, e);
// but just keep going // but just keep going
} }
} }