required parameters & command line

Comments

1 comment

  • Avatar
    juanjo

    Instead of defining the parameters as required, you could validate them in the <preInstallationActionList> if the user selected B and is executing in text mode:

    <preInstallationActionList>
      <actionGroup>
        <actionList>
             <throwError>
                <text>Required parameter 'someParameter' must be provided</text>
                <ruleList>
                    <compareText text="${someParameter}" logic="equals" value=""/>
                </ruleList>
            </throwError>
          </actionList>
            <ruleList>
               <compareText text="${database}" logic="equals" value="B"/>
               <compareText text="${installer_ui}" logic="equals" value="text"/>
            </ruleList>
      </actionGroup>
    </preInstallationActionList>
    

Please sign in to leave a comment.