When does substitute error?

Comments

1 comment

  • Avatar
    michiel

    Hi John,

    You could use the <compareText> rule in a <throwError> action. For example:

     <preBuildActionList>
      <actionGroup>
        <actionList>
        <readFile>
          <name>readme</name>
          <path>${build_project_directory}/README</path>
        </readFile>
        <throwError>
          <text>Placeholder not found</text>
          <ruleList>
            <compareText>
             <logic>does_not_contain</logic>
             <text>${readme}</text>
             <value>@@VERSION@@</value>
           </compareText>
          </ruleList>
         </throwError>
        </actionList>
      </actionGroup>
    </preBuildActionList>

    Would this work for you?

    Regards,

    Michiel

     

Please sign in to leave a comment.