Could this help solving the expansion of both % and $ expressions in one go?
{%
for
variable
in
Variables %}
{%
if
variable.Name ==
‘MyAwesomeBuildVariable’
and variable.Value !=
‘’
%}
My Awesome Build Variable: {{ variable.Value }}
{% endif %}
{% endfor %}
See https://plus.google.com/+JeroenPluimers/posts/9WVFCkKD6wq
<<
Wish: expansion of both $$ and %% in the same string.
To circumvent this error (where %TargetVersion%=XE2):
Could not expand query ‘$Agent.Delphi.%TargetVersion%.Path$’. Object reference not set to an instance of an object.
…
This might be a much simpeler solution: create two new “misc” actions:
- assign variable expand $$
- assign variable expand %%
That way the action flow can determine what do do in which order and ensure the two-stage expansion is done correctly.
Alternatively, you could make the “expansion” a 5-state one:
- no expansion
- $$ expansion
- %% expansion
- %% followed by $$ expansion
- $$ followed by %% expansion
(from what I observe, I think the final state is what is currently used)
>>