aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Binder.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2017-12-19 12:25:40 -0800
committerRob Mensching <rob@firegiant.com>2017-12-19 12:25:40 -0800
commit155a6e96346e0cb3d9ab6f5372fa29b46ebaee89 (patch)
tree59d1f151bfde8068b6014b05b5c8cfea3402c974 /src/WixToolset.Core/Binder.cs
parent6f1665ed759b31bd095f186f9239232c653597cd (diff)
downloadwix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.gz
wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.bz2
wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.zip
Integrate simplified message handling
Diffstat (limited to 'src/WixToolset.Core/Binder.cs')
-rw-r--r--src/WixToolset.Core/Binder.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/WixToolset.Core/Binder.cs b/src/WixToolset.Core/Binder.cs
index e282ead8..2369b600 100644
--- a/src/WixToolset.Core/Binder.cs
+++ b/src/WixToolset.Core/Binder.cs
@@ -215,7 +215,7 @@ namespace WixToolset.Core
215 this.Layout(bindResult); 215 this.Layout(bindResult);
216 } 216 }
217 217
218 return Messaging.Instance.EncounteredError; 218 return this.Context.Messaging.EncounteredError;
219 } 219 }
220 220
221 private ResolveResult Resolve() 221 private ResolveResult Resolve()
@@ -227,6 +227,7 @@ namespace WixToolset.Core
227 IEnumerable<DelayedField> delayedFields; 227 IEnumerable<DelayedField> delayedFields;
228 { 228 {
229 var command = new ResolveFieldsCommand(); 229 var command = new ResolveFieldsCommand();
230 command.Messaging = this.Context.Messaging;
230 command.BuildingPatch = buildingPatch; 231 command.BuildingPatch = buildingPatch;
231 command.BindVariableResolver = this.Context.WixVariableResolver; 232 command.BindVariableResolver = this.Context.WixVariableResolver;
232 command.BindPaths = this.Context.BindPaths; 233 command.BindPaths = this.Context.BindPaths;
@@ -437,12 +438,12 @@ namespace WixToolset.Core
437 { 438 {
438 if (!this.DeleteTempFiles()) 439 if (!this.DeleteTempFiles())
439 { 440 {
440 this.Context.Messaging.OnMessage(WixWarnings.FailedToDeleteTempDir(this.TempFilesLocation)); 441 this.Context.Messaging.Write(WarningMessages.FailedToDeleteTempDir(this.TempFilesLocation));
441 } 442 }
442 } 443 }
443 else 444 else
444 { 445 {
445 this.Context.Messaging.OnMessage(WixVerboses.BinderTempDirLocatedAt(this.TempFilesLocation)); 446 this.Context.Messaging.Write(VerboseMessages.BinderTempDirLocatedAt(this.TempFilesLocation));
446 } 447 }
447 } 448 }
448 449
@@ -594,9 +595,9 @@ namespace WixToolset.Core
594 { 595 {
595 if (null != transfers && transfers.Any()) 596 if (null != transfers && transfers.Any())
596 { 597 {
597 this.Context.Messaging.OnMessage(WixVerboses.LayingOutMedia()); 598 this.Context.Messaging.Write(VerboseMessages.LayingOutMedia());
598 599
599 var command = new TransferFilesCommand(this.Context.BindPaths, this.Context.Extensions, transfers, this.Context.SuppressAclReset); 600 var command = new TransferFilesCommand(this.Context.Messaging, this.Context.BindPaths, this.Context.Extensions, transfers, this.Context.SuppressAclReset);
600 command.Execute(); 601 command.Execute();
601 } 602 }
602 } 603 }
@@ -613,7 +614,7 @@ namespace WixToolset.Core
613 { 614 {
614 if (!directories.ContainsKey(directory)) 615 if (!directories.ContainsKey(directory))
615 { 616 {
616 throw new WixException(WixErrors.ExpectedDirectory(directory)); 617 throw new WixException(ErrorMessages.ExpectedDirectory(directory));
617 } 618 }
618 619
619 ResolvedDirectory resolvedDirectory = (ResolvedDirectory)directories[directory]; 620 ResolvedDirectory resolvedDirectory = (ResolvedDirectory)directories[directory];