Groovy Documentation

org.gradle.tooling.model
[Java] Interface Task


public interface Task

Represents a task which is executable by Gradle.

Since:
1.0-milestone-3


Method Summary
String getDescription()

Returns the description of this task, or null if it has no description.

String getName()

Returns the name of this task.

String getPath()

Returns the path of this task.

Element getProject()

Returns the element which this task belongs to.

 

Method Detail

getDescription

@Nullable
public String getDescription()
Returns the description of this task, or null if it has no description.
Returns:
The description of this task, or null if it has no description.
Since:
1.0-milestone-3


getName

public String getName()
Returns the name of this task. Note that the name is not necessarily a unique identifier for the task.
Returns:
The name of this task.
Since:
1.0-milestone-3


getPath

public String getPath()
Returns the path of this task. This is a fully qualified unique name for this task.
Returns:
The path of this task.
Since:
1.0-milestone-3


getProject

public Element getProject()
Returns the element which this task belongs to.
Returns:
The element which this task belongs to.
Since:
1.0-milestone-3


 

Gradle API 1.8