| OLD | NEW |
| 1 | 1 |
| 2 using System; | 2 using System; |
| 3 using System.Collections.Generic; | 3 using System.Collections.Generic; |
| 4 using System.Text; | 4 using System.Text; |
| 5 using System.Collections; | 5 using System.Collections; |
| 6 using System.IO; | 6 using System.IO; |
| 7 using System.Reflection; | 7 using System.Reflection; |
| 8 using System.Resources; | 8 using System.Resources; |
| 9 using Microsoft.Build.Framework; | 9 using Microsoft.Build.Framework; |
| 10 using Microsoft.Build.Utilities; | 10 using Microsoft.Build.Utilities; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 [Required] | 44 [Required] |
| 45 public string TrackerLogDirectory { get; set; } | 45 public string TrackerLogDirectory { get; set; } |
| 46 | 46 |
| 47 | 47 |
| 48 protected override string GenerateFullPathToTool() { return ToolName; } | 48 protected override string GenerateFullPathToTool() { return ToolName; } |
| 49 | 49 |
| 50 public NaClCompile() | 50 public NaClCompile() |
| 51 : base(new ResourceManager("NaCl.Build.CPPTasks.Properties.Resources
", Assembly.GetExecutingAssembly())) | 51 : base(new ResourceManager("NaCl.Build.CPPTasks.Properties.Resources
", Assembly.GetExecutingAssembly())) |
| 52 { | 52 { |
| 53 this.pathToLog = string.Empty; | 53 this.pathToLog = string.Empty; |
| 54 this.EnvironmentVariables = new string []{"CYGWIN=nodosfilewarning",
"LC_CTYPE=C"}; |
| 54 } | 55 } |
| 55 | 56 |
| 56 protected IDictionary<string, string> GenerateCommandLinesFromTlog() | 57 protected IDictionary<string, string> GenerateCommandLinesFromTlog() |
| 57 { | 58 { |
| 58 IDictionary<string, string> cmdLineDictionary = new Dictionary<strin
g, string>(StringComparer.OrdinalIgnoreCase); | 59 IDictionary<string, string> cmdLineDictionary = new Dictionary<strin
g, string>(StringComparer.OrdinalIgnoreCase); |
| 59 string tlogFilename = this.TLogCommandFile.GetMetadata("FullPath"); | 60 string tlogFilename = this.TLogCommandFile.GetMetadata("FullPath"); |
| 60 if (File.Exists(tlogFilename)) | 61 if (File.Exists(tlogFilename)) |
| 61 { | 62 { |
| 62 using (StreamReader reader = File.OpenText(tlogFilename)) | 63 using (StreamReader reader = File.OpenText(tlogFilename)) |
| 63 { | 64 { |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 | 636 |
| 636 protected override Encoding ResponseFileEncoding | 637 protected override Encoding ResponseFileEncoding |
| 637 { | 638 { |
| 638 get | 639 get |
| 639 { | 640 { |
| 640 return Encoding.ASCII; | 641 return Encoding.ASCII; |
| 641 } | 642 } |
| 642 } | 643 } |
| 643 } | 644 } |
| 644 } | 645 } |
| OLD | NEW |