Package org.gradle.api.execution
Klasse TaskExecutionAdapter
java.lang.Object
org.gradle.api.execution.TaskExecutionAdapter
- Alle implementierten Schnittstellen:
TaskExecutionListener
A
TaskExecutionListener adapter class for receiving task execution events.
The methods in this class are empty. This class exists as convenience for creating listener objects.-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidafterExecute(Task task, TaskState state) This method is called immediately after a task has been executed.voidbeforeExecute(Task task) This method is called immediately before a task is executed.
-
Konstruktordetails
-
TaskExecutionAdapter
public TaskExecutionAdapter()
-
-
Methodendetails
-
beforeExecute
Beschreibung aus Schnittstelle kopiert:TaskExecutionListenerThis method is called immediately before a task is executed.- Angegeben von:
beforeExecutein SchnittstelleTaskExecutionListener- Parameter:
task- The task about to be executed. Never null.
-
afterExecute
Beschreibung aus Schnittstelle kopiert:TaskExecutionListenerThis method is called immediately after a task has been executed. It is always called, regardless of whether the task completed successfully, or failed with an exception.- Angegeben von:
afterExecutein SchnittstelleTaskExecutionListener- Parameter:
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.
-