Question James Fitzpatrick · Jul 20, 2017

Using Macro Definitions in Installation Manifests

Hi all,

I'm exploring using installation manifests to deploy Ensemble configuration changes. I noticed that the documentation uses a macro within an "Error" tag.

<Error Status="$$$NamespaceDoesNotExist">

So I thought this would also be possible with "Var" tags, "If" tags, etc. For example:

<If Condition = "$$$isDevEnvironment">...

I wanted to use the same manifest file, but execute certain things on different environments, but it doesn't seem that this macro gets resolved in this case - I thought the code generation step of would handle this.

I understand that I can achieve the same with different implementations, but just wanted to see anyone knew if this was supported or not. Thanks!

Comments

Bernd Mueller · Aug 1, 2017

Hi James,
it seems you are correct, direct marco evaluation is not yet supported.
As a workaround, you can define class-parameters for the $$$ macros you wanna use in your installer/manifest class:

Parameter CacheVersion = {$$$CacheVersion};
...

which then can be referenced in XDATA manifest that way: (parameter expression)

${#CacheVersion}


HTH,
Bernd

0