aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2018-07-13 15:30:21 -0700
committerRob Mensching <rob@firegiant.com>2018-07-13 15:30:21 -0700
commit0a078e422afac38598c026fed3d7abad582e1ddb (patch)
tree622f76829cb11d185f1ee2740b2c12ae3cbf2641 /src
parentcb634e2e83d1aa44652a4bf5383fdd3e9ce7f2fc (diff)
downloadwix-0a078e422afac38598c026fed3d7abad582e1ddb.tar.gz
wix-0a078e422afac38598c026fed3d7abad582e1ddb.tar.bz2
wix-0a078e422afac38598c026fed3d7abad582e1ddb.zip
Add PostParse() method of IExtensionCommandLine
Fixes wixtoolset/issues#5850
Diffstat (limited to 'src')
-rw-r--r--src/WixToolset.Core/CommandLine/CommandLineParser.cs5
-rw-r--r--src/test/TestData/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/WixToolset.Core/CommandLine/CommandLineParser.cs b/src/WixToolset.Core/CommandLine/CommandLineParser.cs
index da0e979c..65aea1fc 100644
--- a/src/WixToolset.Core/CommandLine/CommandLineParser.cs
+++ b/src/WixToolset.Core/CommandLine/CommandLineParser.cs
@@ -323,6 +323,11 @@ namespace WixToolset.Core.CommandLine
323 } 323 }
324 } 324 }
325 325
326 foreach (var extension in extensions)
327 {
328 extension.PostParse();
329 }
330
326 return this; 331 return this;
327 } 332 }
328 333
diff --git a/src/test/TestData/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs b/src/test/TestData/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs
index 0d0771f3..6f86e20d 100644
--- a/src/test/TestData/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs
+++ b/src/test/TestData/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs
@@ -33,6 +33,10 @@ namespace Example.Extension
33 return false; 33 return false;
34 } 34 }
35 35
36 public void PostParse()
37 {
38 }
39
36 public override string GetVariableValue(string prefix, string name) 40 public override string GetVariableValue(string prefix, string name)
37 { 41 {
38 if (prefix == "ex" && "test".Equals(name, StringComparison.OrdinalIgnoreCase)) 42 if (prefix == "ex" && "test".Equals(name, StringComparison.OrdinalIgnoreCase))