BusyB: The dir element


Introduction

News

Reference

Installation

Quick Start

Download

Both the BusyB project and step elements accept the dir sub element. The dir element specifies the directory that BusyB should change to before performing the build or step. The directory specified by the dir element can either be relative, or absolute.

In the example below, the dir element at the build level sets the directory to /project/src. The dir element in the first step will result in the make command being executed in /project/src/lib, while the second step will get executed in /project/src/test.

<project>
    <once/>
    <build>
      <dir>/project/src</dir>
      <step>
        <dir>lib</dir>
        <cmd>make</cmd>
      </step>
      <step>
        <dir>test</dir>
        <cmd>make test</cmd>
      </step>
    </build>

</project>