diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-12-19 12:25:40 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-12-19 12:25:40 -0800 |
| commit | 155a6e96346e0cb3d9ab6f5372fa29b46ebaee89 (patch) | |
| tree | 59d1f151bfde8068b6014b05b5c8cfea3402c974 /src/WixToolset.Core/Bind/ResolveFieldsCommand.cs | |
| parent | 6f1665ed759b31bd095f186f9239232c653597cd (diff) | |
| download | wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.gz wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.bz2 wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.zip | |
Integrate simplified message handling
Diffstat (limited to 'src/WixToolset.Core/Bind/ResolveFieldsCommand.cs')
| -rw-r--r-- | src/WixToolset.Core/Bind/ResolveFieldsCommand.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/WixToolset.Core/Bind/ResolveFieldsCommand.cs b/src/WixToolset.Core/Bind/ResolveFieldsCommand.cs index 9253f352..e8c90956 100644 --- a/src/WixToolset.Core/Bind/ResolveFieldsCommand.cs +++ b/src/WixToolset.Core/Bind/ResolveFieldsCommand.cs | |||
| @@ -7,12 +7,15 @@ namespace WixToolset.Core.Bind | |||
| 7 | using WixToolset.Data; | 7 | using WixToolset.Data; |
| 8 | using WixToolset.Data.Bind; | 8 | using WixToolset.Data.Bind; |
| 9 | using WixToolset.Extensibility; | 9 | using WixToolset.Extensibility; |
| 10 | using WixToolset.Extensibility.Services; | ||
| 10 | 11 | ||
| 11 | /// <summary> | 12 | /// <summary> |
| 12 | /// Resolve source fields in the tables included in the output | 13 | /// Resolve source fields in the tables included in the output |
| 13 | /// </summary> | 14 | /// </summary> |
| 14 | internal class ResolveFieldsCommand | 15 | internal class ResolveFieldsCommand |
| 15 | { | 16 | { |
| 17 | public IMessaging Messaging { private get; set; } | ||
| 18 | |||
| 16 | public bool BuildingPatch { private get; set; } | 19 | public bool BuildingPatch { private get; set; } |
| 17 | 20 | ||
| 18 | public IBindVariableResolver BindVariableResolver { private get; set; } | 21 | public IBindVariableResolver BindVariableResolver { private get; set; } |
| @@ -75,7 +78,7 @@ namespace WixToolset.Core.Bind | |||
| 75 | } | 78 | } |
| 76 | 79 | ||
| 77 | // Move to next row if we've hit an error resolving variables. | 80 | // Move to next row if we've hit an error resolving variables. |
| 78 | if (Messaging.Instance.EncounteredError) // TODO: make this error handling more specific to just the failure to resolve variables in this field. | 81 | if (this.Messaging.EncounteredError) // TODO: make this error handling more specific to just the failure to resolve variables in this field. |
| 79 | { | 82 | { |
| 80 | continue; | 83 | continue; |
| 81 | } | 84 | } |
| @@ -151,7 +154,7 @@ namespace WixToolset.Core.Bind | |||
| 151 | catch (WixFileNotFoundException) | 154 | catch (WixFileNotFoundException) |
| 152 | { | 155 | { |
| 153 | // display the error with source line information | 156 | // display the error with source line information |
| 154 | Messaging.Instance.OnMessage(WixErrors.FileNotFound(row.SourceLineNumbers, objectField.Path)); | 157 | this.Messaging.Write(ErrorMessages.FileNotFound(row.SourceLineNumbers, objectField.Path)); |
| 155 | } | 158 | } |
| 156 | } | 159 | } |
| 157 | 160 | ||
| @@ -208,7 +211,7 @@ namespace WixToolset.Core.Bind | |||
| 208 | catch (WixFileNotFoundException) | 211 | catch (WixFileNotFoundException) |
| 209 | { | 212 | { |
| 210 | // display the error with source line information | 213 | // display the error with source line information |
| 211 | Messaging.Instance.OnMessage(WixErrors.FileNotFound(row.SourceLineNumbers, (string)objectField.PreviousData)); | 214 | Messaging.Instance.Write(WixErrors.FileNotFound(row.SourceLineNumbers, (string)objectField.PreviousData)); |
| 212 | } | 215 | } |
| 213 | } | 216 | } |
| 214 | } | 217 | } |
