VMware Cloud Community
clairealex7
Enthusiast
Enthusiast
Jump to solution

Excluding/Including components at build time depending on --downloadable-components

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

0 Kudos
1 Solution

Accepted Solutions
michieldhont_
Hot Shot
Hot Shot
Jump to solution

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

View solution in original post

0 Kudos
2 Replies
michieldhont_
Hot Shot
Hot Shot
Jump to solution

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

0 Kudos
clairealex7
Enthusiast
Enthusiast
Jump to solution

Oh great! Thank you!

Claire

0 Kudos