Global default latte plugin configuration. These settings are applied to relevant tasks created by latte.
| Type | Name and description |
|---|---|
static java.lang.String |
DEFAULT_RCODE_DIR_NAMEThe default name of the rcode directory for all compilations. |
static java.lang.String |
NAMEName of the property on Project this instance should be bound to. |
java.util.Set<java.lang.String> |
dbConnectionsThe default database connections for this project. |
java.lang.Object |
dlcHomeDefault location for DLC. |
java.io.File |
dlcHome |
java.util.Map |
environmentdefault set of environment variables to pass to tasks that can consume them |
java.util.Map |
pctTaskArgsDefault parameters to pass to ALL PCT tasks. |
org.gradle.api.file.FileCollection |
propathThe default PROPATH for this project. |
java.lang.Object |
rcodeDirThe default rcode directory for all compilations. |
| Constructor and description |
|---|
LatteExtension
(org.gradle.api.Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
dbConnections(java.lang.String... dbs)Add some database connection references to all latte tasks |
|
void |
environment(java.util.Map environment)Configure the environment variables to pass to any command that can consume them |
|
java.io.File |
getDlcHome()get value of dlcHome |
|
java.io.File |
getRcodeDir() |
|
void |
pctTaskArgs(groovy.lang.Closure cfg)Configure parameters to pass to ALL PCT tasks via a closure |
|
void |
propath(java.lang.Object... paths)Add some paths to propath of all latte tasks |
|
void |
rcodeDir(java.lang.Object rd)Set default rcode directory |
|
void |
setDlcHome(java.io.File dlcHome)Default to using environment variable. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The default name of the rcode directory for all compilations. Relative to org.gradle.api.Project#getBuildDir() ({@value}).
Name of the property on Project this instance should be bound to.
The default database connections for this project.
Default location for DLC. If this is assigned, it will be passed to each task as the value for dlcHome unless overridden. Defaults to environment variable value for DLC.
default set of environment variables to pass to tasks that can consume them
Default parameters to pass to ALL PCT tasks.
The default PROPATH for this project.
The default rcode directory for all compilations.
Add some database connection references to all latte tasks
dbs - an iterable of names/aliases of databases to addConfigure the environment variables to pass to any command that can consume them
get value of dlcHome
Configure parameters to pass to ALL PCT tasks via a closure
The closure is called with its delegate set to the pctTaskArgs
map which allows a handy way of setting multiple arguments, e.g.
pctTaskArgs { preprocess = true; listing = true }
cfg - the closure with configuration assignmentsAdd some paths to propath of all latte tasks The given paths will be evaluated as per Project.files(Object...).
paths - the paths to addSet default rcode directory The given directory will be evaluated as per Project.file(Object) on retrieval.
rd - directory to use for rcodeDefault to using environment variable. if $DLC is not set, fall back to current directory so we don't fail with errors during tests
Groovy Documentation