Use this custom task to extract a PL file.

Method
Method Description Example
*from(String plFilePath Specify the pl path. from("./corelib.pl")
into(String destinationDir) Specify the destination directory for the extracted files. into("$buildDir/corelib")
exclude(String... excludes) Adds an ANT style exclude pattern. exclude('**/*.p', '**/*.cls')
include(String... includes) Adds an ANT style include pattern. include('**/*.r', '**/*.conf')
*arguments(Map args) Additional arguments.

These arguments are directly passed to PCT.

arguments([dirmode:"0777", k2:'v2'])
Properties
Property Required Description Example Deafult Value
source No The file path to the PL which will be extracted. source="./corelib.pl" None
destinationDir No The destination directory for the extracted files. destinationDir="$buildDir/corelib" None
*override/duplicatesStrategy No - - None
arguments No

Additional arguments.

These arguments are directly passed to PCT.

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

Sample Code Snippet

task extractCorelibPl(type: ExtractPL){
    from("./corelib.pl")
    into("$buildDir/corelib")
    include('**/*.r')
    arguments = [ dirmode:"0777", encoding  : 'undefined' ]
}