Skip to content

CreateProcedureLibrary

Matt Baker edited this page Jul 28, 2020 · 8 revisions

Example

plugins {
  id "oe.espress.latte" version "<version>"
}

import oe.espreso.latte.*


task createPL(type: CreateProcedureLibrary) {

    destFile = "build/foo.pl"
    baseDir = "/path/to/some/dir/with/rcode"
    includes= "**/*.r"
}

Use the command ./gradlew createPL to run this example.

If successful, there should be a foo.pl file in build of your project.

Properties

Attribute Required Description Default value
destFile † Yes R-code library to create None
sharedFile † Yes Memory mapped library to create None
encoding No Character encoding used to store filenames. None
noCompress No Disable library compression. False (i.e. compression enabled)
cpInternal No Internal code page (-cpinternal parameter) None
cpStream No Stream code page (-cpstream parameter) None
cpColl No Collation table (-cpcoll parameter) None
cpCase No Case table (-cpcase parameter) None
baseDir Yes The directory from which to store the files. None
includes No Comma- or space-separated list of patterns of files that must be included. All files are included when omitted None
includesFile No The name of a file. Each line of this file is taken to be an include pattern None
excludes No Comma- or space-separated list of patterns of files that must be excluded. No files (except default excludes) are excluded when omitted None
excludesFile No The name of a file. Each line of this file is taken to be an exclude pattern None
defaultExcludes No Indicates whether default excludes should be used or not ("yes"/"no"). Default excludes are used when omitted True

Please refer to PCTLibrary for more information.