Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD

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

    public interface Task

Represents a task which is executable by Gradle.

Method Summary
`java.lang.String` | `getDescription()` Returns the description of this task.
`java.lang.String` | `getName()` Returns the name of this task.
`java.lang.String` | `getPath()` Returns the path of this task.
`Project` | `getProject()` Returns the project which this task belongs to.

Method Detail

### getDescription

    public java.lang.String getDescription()

  Returns the description of this task.
  Returns:
    The description. May be null.

### getName

    public java.lang.String getName()

  Returns the name of this task. Note that the name is not necessarily a unique identifier for the task.
  Returns:
    The name.

### getPath

    public java.lang.String getPath()

  Returns the path of this task. This is a fully qualified unique name for this task.

### getProject

    public Project getProject()

  Returns the project which this task belongs to.
  Returns:
    The project.

Groovy Documentation