Skip to content
Gilles QUERRET edited this page Apr 3, 2015 · 7 revisions

PCTLibrary task -- <pct:library />

Description

Creates and adds/replaces files in OpenEdge library files

Parameters

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

PCTLibrary inherits attributes from PCT.

Parameters as nested elements

fileset

Adds a file set to the library

Examples

<PCTLibrary destfile="${dist}/mylib.pl" basedir="${build}" />

stores all files in the ${build} directory into a file called mylib.pl in the ${dist} directory.

<PCTLibrary destfile="${dist}/mylib.pl" basedir="${build}" includes="**/*.r" excludes="test/*" />

stores all .r files in the ${build} directory (and subdirectories) except from the files in the test subdirectory, into a file called mylib.pl in the ${dist} directory.

<PCTLibrary destfile="${dist}/mylib.pl">
  <fileset dir="${build}">
    <include name="**/*.r" />
    <exclude name="test/*" />
  </fileset>
</PCTLibrary>

is similar to the previous example, but using nested fileset.

Clone this wiki locally