BusyB: The And Trigger


Introduction

News

Reference

Installation

Quick Start

Download

The <and> trigger fires when all of its sub triggers want to fire. This is probably easier to illustrate than explain, so here's an example:

<project>

    <and>
        <interval>1 hour</interval>
        <whenFilesChange>
            <dir>/usr/home/program1/src</dir>
        </whenFilesChange>

        <whenCmdOK>
            <cmd>test -f /tmp/foo</cmd>
         </whenCmdOK>
    </and>

    <build>
      ... build sub elements...
    </build>

</project>

The example above tells BusyB to check once per hour for changes to /usr/home/program1/src and that /tmp/foo exists. In other words the build will only be triggered if all of the sub-triggers are “fireable”.