Configuring zBuilder Languages task
The zBuilder Languages
task provides ready-to-use language compiler samples, but can be easily configured to add new ones. In this tutorial, you modify which language compilers are available for the default Languages
task.
Prerequisites
- Ensure DBB is installed and configured by following the Host Configuration Guide.
- Follow the steps in the zBuilder Getting started guide.
Estimated time
This tutorial takes about 7 minutes to complete.
Steps
- Open your zBuilder configuration directory (default /usr/lpp/IBM/dbb/build).
- The
Languages.yaml
file declares the default language compilers and dataset names to be used with zBuilder. This file is included in your build configuration. Edit this file or create a copy of it.- NOTE: If you create a copy, you need to include that new file in your build configuration. Reference the YAML include: reference for more details.
- Some language compilers are already included in this task. To add another language compiler, add an include statement that points to the languages configuration file.
- If you haven't configured the ready-to-use language compiler scripts yet, follow the steps in Configuring Language Compiler Scripts.
include:
- file: MyCompiler.yaml
- file: BMS.yaml
...
- Add an entry for the compiler under the
Languages
stage definition.
tasks:
- stage: Languages
tasks:
- MyCompiler # Defined in MyCompiler.yaml
- BMS # Defined in BMS.yaml
...
Summary
Any lifecycle that uses the Languages
stage now includes the new language compiler.