Use this task to create a Procedure Library (PL) file.

Methods

Method Description Example
from(String... from) Adds sources and r-codes to this task, after the include and exclude patterns are applied. from("${buildDir}/rcode", 'src2')
exclude(String... excludes) Adds an ANT-style exclude pattern exclude('**/*.txt', '**/*.conf')
include(String... includes) Adds an ANT-style include pattern include('**/*.r', '**/*.p')
arguments(Map args)

Additional arguments for libraries.

(These arguments are directly passed to PCT.)

arguments([k1:"v1", k2:'v2'])

Properties

Property Required? Description Example Default value
plFile Yes, if sharedFile is not provided The file path where the PL file is created plFile="path" None
sharedFile Yes, if plFile is not provided Memory mapped library to create the PL file sharedFile="path" None
cpInternal No Internal code page (-cpinternal parameter) cpInternal="value" None
codepage No Name of the code page for the library codepage="value" None
arguments No

Additional arguments for libraries.

(These arguments are directly passed to PCT.)

arguments = [k1:"v1", k2:'v2'] None

Sample code snippet

The following code snippet is an example using PL:

task createPL2(type: PL){
    plFile = "${buildDir}/dist/test.pl"
    from("${buildDir}/rcode")
    include('**/*.r')
    arguments = [encoding  : 'undefined' ]
}