Hello,
I would like to exclude or include some components, depending on the --downloadable-components flag passed at build time.
Is there a variable I can test against at build time, to author some <shouldPackRuleList> rules?
Thank you,
Claire
Hi @clairealex7,
Do you mean that some components should always be excluded depending on if the --downloadable-components flag is set? You could check the flag using the installer_command_line_arguments variable as a condition in the shouldPackRuleList:
<shouldPackRuleList>
<compareText>
<text>${installer_command_line_arguments}</text>
<logic>does_not_contain</logic>
<value>--downloadable-components</value>
</compareText>
</shouldPackRuleList>
Best regards,
Michiel
Hi @clairealex7,
Do you mean that some components should always be excluded depending on if the --downloadable-components flag is set? You could check the flag using the installer_command_line_arguments variable as a condition in the shouldPackRuleList:
<shouldPackRuleList>
<compareText>
<text>${installer_command_line_arguments}</text>
<logic>does_not_contain</logic>
<value>--downloadable-components</value>
</compareText>
</shouldPackRuleList>
Best regards,
Michiel
Oh great! Thank you!
Claire