diff options
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": |