public class TaskExecutionLogger extends Object implements TaskExecutionListener
Constructor and Description |
---|
TaskExecutionLogger(org.gradle.logging.ProgressLoggerFactory progressLoggerFactory,
org.gradle.internal.progress.LoggerProvider parentLoggerPovider) |
Modifier and Type | Method and Description |
---|---|
void |
afterExecute(Task task,
TaskState state)
This method is call immediately after a task has been executed.
|
void |
beforeExecute(Task task)
This method is called immediately before a task is executed.
|
public TaskExecutionLogger(org.gradle.logging.ProgressLoggerFactory progressLoggerFactory, org.gradle.internal.progress.LoggerProvider parentLoggerPovider)
public void beforeExecute(Task task)
TaskExecutionListener
beforeExecute
in interface TaskExecutionListener
task
- The task about to be executed. Never null.public void afterExecute(Task task, TaskState state)
TaskExecutionListener
afterExecute
in interface TaskExecutionListener
task
- The task which was executed. Never null.state
- The task state. If the task failed with an exception, the exception is available in this
state. Never null.