Browse Source

expand environment variables

git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@31 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
kohsuke 17 years ago
parent
commit
5177de8b66
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Main.cs

+ 3 - 3
Main.cs

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