Use this task to create an OpenEdge database.

Methods

Method Description Example
arguments(Map args)

Additional arguments. These arguments are directly passed to PCT.

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

Properties

Property Required? Description Example Default value
dbName Yes Database name dbName="dbName" None
outputDir No The directory where the database will be created outputDir="path" "${projectDir}"
sourceDb No Copy the specified database to the target database. sourceDb="path" If attribute is not provided, the empty DB is used
schemaFile No Initial dump files to load into database. Separate dump filenames with commas. Files are resolved first as an absolute path, then relative to base directory. Wildcards are not expanded. schemaFile="path" None
structFile No Structure description file structFile="path" None
blockSize No Block size in kilobytes (1, 2, 4, or 8). Cannot be used with sourceDb attribute. blockSize=2 8
tmpDir No The -T parameter when loading a schema tmpDir="path" None
cpInternal No The -cpinternal parameter when loading a schema cpInternal="value" None
newInstance No Appends -newInstance in the PROCOPY command line. newInstance=true false
largeFiles No Enable large files for this database. largeFiles=true false
arguments No

Additional arguments for databases.

(These arguments are directly passed to PCT.)

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

Sample code snippet

The following code snippet is an example using CreateDB:
task createSports2000(type: CreateDB){
    dbName = 'sports2000'
    sourceDb = "${dlcHome}/sports2000"
    outputDir = "db/sports2000"
}