Base class for LensKit tasks.
Fields inherited from class | Fields |
---|---|
class JavaExec |
TASK_NAME, TASK_DESCRIPTION, TASK_GROUP, TASK_TYPE, TASK_DEPENDS_ON, TASK_OVERWRITE, TASK_ACTION |
class ConventionTask |
TASK_NAME, TASK_DESCRIPTION, TASK_GROUP, TASK_TYPE, TASK_DEPENDS_ON, TASK_OVERWRITE, TASK_ACTION |
Type | Name and description |
---|---|
boolean |
dependsOnClasspath Whether this task depends on the files on its classpath. |
boolean |
dryRun Enable dry-run support. |
Property<java.io.File> |
logFile The log file. |
Property<java.lang.String> |
logFileLevel The log file output level.. |
Property<java.lang.String> |
logLevel The output logging level. |
java.lang.Object |
logbackConfiguration A Logback configuration file. |
Property<java.lang.String> |
maxMemory The maximum memory the LensKit task should use. |
Constructor and description |
---|
LenskitTask
() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
applyFinalSettings() Apply the LensKit JVM settings to the invoker to prepare it for running. |
|
protected void |
doPrepare() Method run before running the command. |
|
void |
exec() Execute the LensKit task. |
|
java.util.List<java.lang.String> |
getArgs() |
|
java.lang.String |
getCommand() |
|
java.util.List |
getCommandArgs() |
|
JavaExecSpec |
getInvoker() Access the underlying invoker that will be used to run the LensKit code. |
|
void |
invoker(groovy.lang.Closure block) Apply additional JVM configuration. |
|
void |
logFile(java.lang.Object lf) |
|
void |
logFileLevel(java.lang.String mm) |
|
void |
logLevel(java.lang.String mm) |
|
void |
maxMemory(java.lang.String mm) |
Whether this task depends on the files on its classpath.
Enable dry-run support. If turned on, the runner prepares but does not execute the task.
The log file. Defaults to no log file.
The log file output level..
The output logging level.
A Logback configuration file. If specified, its content overrides all other logging-related options.
The maximum memory the LensKit task should use. Defaults to org.lenskit.gradle.LenskitExtension#getMaxMemory().
Apply the LensKit JVM settings to the invoker to prepare it for running.
Method run before running the command. Used to set up (e.g. write spec files) before the command can be run.
Execute the LensKit task.
Access the underlying invoker that will be used to run the LensKit code. Most code will not need this; it allows build scripts to set additional JVM options that are not exposed as specific properties if necessary. Properties exposed by LensKit tasks (such as getMaxMemory()) will generally override their corresponding settings in the invoker.
Apply additional JVM configuration.
block
- The configuration block, evaluated against getInvoker().