Home Help Center

IceGrid templates: clarifying parameter substitution

n2503vn2503v Member Alex MakarenkoOrganization: ACFR, University of SydneyProject: Orca ✭✭✭
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

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    Thanks for the bug report, we'll look into this.

    Cheers,

    Michi.
Sign In or Register to comment.