diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-09-09 16:03:29 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-09-09 21:14:27 -0500 |
commit | a1307cd4e76a89598c53cb68309358a7012db553 (patch) | |
tree | f79cf181b49f0b754afcd4ec25487bf2b284d45e /src/ext/Bal/wixext/BalCompiler.cs | |
parent | f61479585d865372645cb18c982aa708dd975da3 (diff) | |
download | wix-a1307cd4e76a89598c53cb68309358a7012db553.tar.gz wix-a1307cd4e76a89598c53cb68309358a7012db553.tar.bz2 wix-a1307cd4e76a89598c53cb68309358a7012db553.zip |
Move `Bundle/@CommandLineVariables` into Bal.wixext.
Implements 6858
Diffstat (limited to 'src/ext/Bal/wixext/BalCompiler.cs')
-rw-r--r-- | src/ext/Bal/wixext/BalCompiler.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/ext/Bal/wixext/BalCompiler.cs b/src/ext/Bal/wixext/BalCompiler.cs index bc2ba861..bd2fb4a2 100644 --- a/src/ext/Bal/wixext/BalCompiler.cs +++ b/src/ext/Bal/wixext/BalCompiler.cs | |||
@@ -119,6 +119,42 @@ namespace WixToolset.Bal | |||
119 | 119 | ||
120 | switch (parentElement.Name.LocalName) | 120 | switch (parentElement.Name.LocalName) |
121 | { | 121 | { |
122 | case "Bundle": | ||
123 | switch (attribute.Name.LocalName) | ||
124 | { | ||
125 | case "CommandLineVariables": | ||
126 | WixStdbaCommandLineVariableType? variableType = null; | ||
127 | |||
128 | var commandLineVariablesValue = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attribute); | ||
129 | switch (commandLineVariablesValue) | ||
130 | { | ||
131 | case "caseInsensitive": | ||
132 | variableType = WixStdbaCommandLineVariableType.CaseInsensitive; | ||
133 | break; | ||
134 | case "caseSensitive": | ||
135 | variableType = WixStdbaCommandLineVariableType.CaseSensitive; | ||
136 | break; | ||
137 | default: | ||
138 | this.Messaging.Write(ErrorMessages.IllegalAttributeValue(sourceLineNumbers, parentElement.Name.LocalName, attribute.Name.LocalName, commandLineVariablesValue, "caseInsensitive", "caseSensitive")); | ||
139 | break; | ||
140 | } | ||
141 | |||
142 | if (variableType.HasValue) | ||
143 | { | ||
144 | // There can only be one. | ||
145 | var id = new Identifier(AccessModifier.Global, "WixStdbaCommandLineVariableType"); | ||
146 | section.AddSymbol(new WixStdbaCommandLineSymbol(sourceLineNumbers, id) | ||
147 | { | ||
148 | VariableType = variableType.Value, | ||
149 | }); | ||
150 | } | ||
151 | |||
152 | break; | ||
153 | default: | ||
154 | this.ParseHelper.UnexpectedAttribute(parentElement, attribute); | ||
155 | break; | ||
156 | } | ||
157 | break; | ||
122 | case "BundlePackage": | 158 | case "BundlePackage": |
123 | case "ExePackage": | 159 | case "ExePackage": |
124 | case "MsiPackage": | 160 | case "MsiPackage": |