BusyB: The Or Trigger

Main Page




Quick Start


The <or> trigger does about what you would expect: it triggers a build if any of its sub triggers want to fire. This is probably easier to illustrate than explain, so here's an example:


        <interval>1 hour</interval>

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

      ... build sub elements...


The example above tells BusyB to check once per hour t hat /tmp/foo exists and for changes to /usr/home/program1/src. If either condition is true, a build gets fired. In other words the build will be triggered if any of the sub-triggers are “fireable”.

Note that the <or> trigger does a “short circuit” type of evaluation. The minute one of the sub triggers evaluates to true, the or trigger will quit checking and fire a build.