cobollbr

Description

Create a Micro Focus library (of type .lbr) from one or more COBOL files.

Parameters

Attribute Description Required
destdir The name of the directory where the library is to be written. Defaults to the current directory. No
destfile The name of the library that is to be created. No
desttype The type of executable that the linker is to produce. The value of this attribute must be "lbr". No
failonerror Stop the build process if the task exits with a return-code other than 0. Defaults to false. No
is64bit If true, creates a 64-bit library. Defaults to false (i.e. 32-bit library). No
lbrcommand Specify a custom link command to be used to create the library file. If specified, all other attributes are ignored and the cobollbr task uses the given command to create the library. Defaults to "". No
threadCount The maximum number of parallel compilations to be used. Defaults to 1. No
userEnv The name of the properties file that contains the user specified environment variables. No

Parameters specified as nested elements

mffilelist
Use nested <mffilelist> elements to specify the object file name(s) to be included in the library. See mffilelist.

Examples

Create a 32-bit application, ProgramLib1.lbr, from three .int files - Program1.int, Program2.int and Program3.int:

<cobollbr destdir="${basedir}/bin" destfile="ProgramLib1" is64bit="false" failonerror="true">
    <mffilelist srcdir="${basedir}/bin">
        <file name="Program1.int"/>
        <file name="Program2.int"/>
        <file name="Program3.int"/>
    </mffilelist>
</cobollbr>

Create a 64-bit application, ProgramLib2.lbr, from three .gnt files - Program1.gnt, Program2.gnt and Program3.gnt:

<cobollbr destdir="${basedir}/bin" destfile="ProgramLib2" is64bit="true" failonerror="true">
    <mffilelist srcdir="${basedir}/bin">
        <file name="Program1.gnt"/>
        <file name="Program2.gnt"/>
        <file name="Program3.gnt"/>
    </mffilelist>
</cobollbr>