This project has moved and is read-only. For the latest updates, please go here.

Pre-process BRE and environment bindings based on user selection

Topics: Getting Started/Beginner, Server Deployment
Jun 30, 2014 at 1:12 PM
Edited Jun 30, 2014 at 3:15 PM
I've got a requirement where the BRE policy needs preprocessing based on the target server environment (DEV/TEST/LIVE)

The discussion post shows how to use the <FilesToXmlPreprocess> to pre-process the XML, which I got working , but it only reads the local development value from the SettingsFileGenerator.xml

Read through the post that details the creation of a wizard page with radio buttons, and the example worked fine.
But what I can't get is how to get the selection in the wizard page to drive the required pre-processing of the XML?

And then I thought, once the user has selected the environment, it'd be nice if that also drove the selection of the bindings file ... is that possible?
Jun 30, 2014 at 3:25 PM
I was overthinking the first part of my requirement ...

Depending on the selected environment settings file, generated from SettingsFileGenerator.xml, the pre-processing can replace any ${} values in the required XML

But this needs the user to select the required settings file ...

How can you take the selection of a radio button in the wizard page through to the required environment settings file?