Archived

This forum has been archived. Please start a new discussion on GitHub.

IceGrid templates: clarifying parameter substitution

Hi,
I've struggled for a bit with one aspect of IceGrid server template definition.
I found an alternative solution but wanted to mention it, for a possible clarification of the manual.

I think the following is not supported, i.e. using the (required) value of one parameter as the default value of another. But I could not find an explicit exclusion of this usage pattern (v. 3.3.1, sec. 39.17 Variable and Parameter Semantics).
<server-template id="Template1">
  <parameter name="par1"/>
  <parameter name="par2" default="${par1}"/>
   ...
</server-template>

Results in an exception:
invalid value for attribute `default parameter `par2':
invalid variable `${par1}':
undefined variable `par1'

Just wanted to clarify.
Thanks,
Alex

Comments

  • Thanks for the bug report, we'll look into this.

    Cheers,

    Michi.