| Modifier and Type | Method and Description |
|---|---|
void |
TaskExecutionLogger.afterExecute(Task task,
TaskState state) |
void |
TaskExecutionLogger.beforeExecute(Task task) |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultTask
DefaultTask is the standard Task implementation. |
| Modifier and Type | Method and Description |
|---|---|
Task |
Task.configure(Closure configureClosure)
Applies the statements of the closure against this task object.
|
Task |
Task.deleteAllActions()
Removes all the actions of this task.
|
Task |
Task.dependsOn(Object... paths)
Adds the given dependencies to this task.
|
Task |
Task.doFirst(Action<? super Task> action)
Adds the given
Action to the beginning of this task's action list. |
Task |
Task.doFirst(Closure action)
Adds the given closure to the beginning of this task's action list.
|
Task |
Task.doLast(Action<? super Task> action)
Adds the given
Action to the end of this task's action list. |
Task |
Task.doLast(Closure action)
Adds the given closure to the end of this task's action list.
|
Task |
Task.leftShift(Closure action)
Adds the given closure to the end of this task's action list.
|
Task |
Project.task(Map<String,?> args,
String name)
Creates a
Task with the given name and adds it to this project. |
Task |
Project.task(Map<String,?> args,
String name,
Closure configureClosure)
Creates a
Task with the given name and adds it to this project. |
Task |
Project.task(String name)
Creates a
Task with the given name and adds it to this project. |
Task |
Project.task(String name,
Closure configureClosure)
Creates a
Task with the given name and adds it to this project. |
| Modifier and Type | Method and Description |
|---|---|
List<Action<? super Task>> |
Task.getActions()
Returns the sequence of
Action objects which will be executed by this task, in the order of
execution. |
Map<Project,Set<Task>> |
Project.getAllTasks(boolean recursive)
Returns a map of the tasks contained in this project, and optionally its subprojects.
|
Set<Task> |
Project.getTasksByName(String name,
boolean recursive)
Returns the set of tasks with the given name contained in this project, and optionally its subprojects.
|
| Modifier and Type | Method and Description |
|---|---|
String |
Task.Namer.determineName(Task c) |
| Modifier and Type | Method and Description |
|---|---|
Task |
Task.doFirst(Action<? super Task> action)
Adds the given
Action to the beginning of this task's action list. |
Task |
Task.doLast(Action<? super Task> action)
Adds the given
Action to the end of this task's action list. |
void |
Task.onlyIf(Spec<? super Task> onlyIfSpec)
Execute the task only if the given spec is satisfied.
|
void |
Task.setActions(List<Action<? super Task>> actions)
Sets the sequence of
Action objects which will be executed by this task. |
void |
Task.setOnlyIf(Spec<? super Task> onlyIfSpec)
Execute the task only if the given spec is satisfied.
|
| Modifier and Type | Method and Description |
|---|---|
List<Task> |
TaskExecutionGraph.getAllTasks()
Returns the tasks which are included in the execution plan.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TaskActionListener.afterActions(Task task)
This method is called immediately after the task has completed performing its actions.
|
void |
TaskExecutionListener.afterExecute(Task task,
TaskState state)
This method is call immediately after a task has been executed.
|
void |
TaskActionListener.beforeActions(Task task)
This method is called immediately before the task starts performing its actions.
|
void |
TaskExecutionListener.beforeExecute(Task task)
This method is called immediately before a task is executed.
|
boolean |
TaskExecutionGraph.hasTask(Task task)
Determines whether the given task is included in the execution plan.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
TaskInternal |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTask |
class |
ConventionTask |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Task> |
AbstractTask.injectIntoNewInstance(ProjectInternal project,
String name,
Callable<T> factory) |
| Modifier and Type | Method and Description |
|---|---|
Task |
AbstractTask.configure(Closure closure) |
Task |
ConventionTask.conventionMapping(String property,
Callable<?> mapping) |
Task |
ConventionTask.conventionMapping(String property,
Closure mapping) |
Task |
AbstractTask.deleteAllActions() |
Task |
AbstractTask.dependsOn(Object... paths) |
Task |
AbstractTask.doFirst(Action<? super Task> action) |
Task |
AbstractTask.doFirst(Closure action) |
Task |
AbstractTask.doLast(Action<? super Task> action) |
Task |
AbstractTask.doLast(Closure action) |
Task |
AbstractTask.leftShift(Closure action) |
| Modifier and Type | Method and Description |
|---|---|
List<Action<? super Task>> |
AbstractTask.getActions() |
| Modifier and Type | Method and Description |
|---|---|
int |
AbstractTask.compareTo(Task otherTask) |
| Modifier and Type | Method and Description |
|---|---|
Task |
AbstractTask.doFirst(Action<? super Task> action) |
Task |
AbstractTask.doLast(Action<? super Task> action) |
void |
AbstractTask.onlyIf(Spec<? super Task> onlyIfSpec) |
void |
AbstractTask.setActions(List<Action<? super Task>> actions) |
void |
AbstractTask.setOnlyIf(Spec<? super Task> spec) |
| Modifier and Type | Class and Description |
|---|---|
class |
ProcessResources |
| Modifier and Type | Method and Description |
|---|---|
Task |
AbstractProject.createTask(Map<String,?> args,
String name,
Action<? super Task> action) |
Task |
AbstractProject.createTask(Map args,
String name,
Closure action) |
Task |
AbstractProject.task(Map options,
Object task) |
Task |
AbstractProject.task(Map options,
Object task,
Closure configureClosure) |
Task |
AbstractProject.task(Map options,
String task) |
Task |
AbstractProject.task(Map options,
String task,
Closure configureClosure) |
Task |
AbstractProject.task(Object task) |
Task |
AbstractProject.task(Object task,
Closure configureClosure) |
Task |
AbstractProject.task(String task) |
Task |
AbstractProject.task(String task,
Closure configureClosure) |
| Modifier and Type | Method and Description |
|---|---|
Map<Project,Set<Task>> |
AbstractProject.getAllTasks(boolean recursive) |
Set<Task> |
AbstractProject.getTasksByName(String name,
boolean recursive) |
| Modifier and Type | Method and Description |
|---|---|
Task |
AbstractProject.createTask(Map<String,?> args,
String name,
Action<? super Task> action) |
| Modifier and Type | Method and Description |
|---|---|
void |
UpdateAction.update(Task task,
Callable<Object> futureValue) |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultTaskCollection<T extends Task> |
| Modifier and Type | Method and Description |
|---|---|
<T extends Task> |
DefaultTaskContainer.add(String name,
Class<T> type) |
<T extends Task> |
DefaultTaskContainer.replace(String name,
Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
Task |
DefaultTaskContainer.add(Map<String,?> options) |
Task |
DefaultTaskContainer.add(Map<String,?> options,
Closure configureClosure) |
Task |
DefaultTaskContainer.add(String name) |
Task |
DefaultTaskContainer.add(String name,
Closure configureClosure) |
Task |
DefaultTaskContainer.create(String name) |
Task |
DefaultTaskContainer.create(String name,
Closure configureClosure) |
Task |
DefaultTaskContainer.findByPath(String path) |
Task |
DefaultTaskContainer.getByPath(String path) |
Task |
TaskDependencyResolveContext.getTask()
Returns the task whose dependencies are being resolved.
|
Task |
CachingTaskDependencyResolveContext.getTask() |
Task |
DefaultTaskContainer.replace(String name) |
Task |
TaskResolver.resolveTask(Object path) |
Task |
DefaultTaskContainer.resolveTask(Object path) |
| Modifier and Type | Method and Description |
|---|---|
Set<? extends Task> |
CachingTaskDependencyResolveContext.getDependencies(Task task) |
Set<Task> |
AbstractTaskDependency.getDependencies(Task task) |
Set<Task> |
CachingTaskDependencyResolveContext.resolve(Task task) |
| Modifier and Type | Method and Description |
|---|---|
Set<? extends Task> |
CachingTaskDependencyResolveContext.getDependencies(Task task) |
Set<Task> |
AbstractTaskDependency.getDependencies(Task task) |
Set<Task> |
CachingTaskDependencyResolveContext.resolve(Task task) |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultTaskOutputs.upToDateWhen(Spec<? super Task> upToDateSpec) |
| Modifier and Type | Class and Description |
|---|---|
class |
AntlrTask
Generates parsers from Antlr grammars.
|
| Constructor and Description |
|---|
CheckstyleReportsImpl(Task task) |
CodeNarcReportsImpl(Task task) |
FindBugsReportsImpl(Task task) |
JDependReportsImpl(Task task) |
PmdReportsImpl(Task task) |
| Modifier and Type | Method and Description |
|---|---|
protected Task |
TaskReportContainer.getTask() |
| Constructor and Description |
|---|
TaskGeneratedReport(String name,
Report.OutputType outputType,
Task task) |
TaskGeneratedSingleFileReport(String name,
Task task) |
TaskReportContainer(Class<? extends T> type,
Task task) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TaskCollection<T extends Task>
A
TaskCollection contains a set of Task instances, and provides a number of query methods. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCopyTask
AbstractCopyTask is the base class for all copy tasks. |
class |
Copy
Copies files into a destination directory.
|
class |
Delete
Deletes files or directories.
|
class |
Exec
Executes a command line process.
|
class |
GradleBuild
Executes a Gradle build.
|
class |
JavaExec
Executes a Java application in a child process.
|
class |
SourceTask
A
SourceTask performs some operation on source files. |
class |
Sync
Synchronises the contents of a destination directory with some source directories and files.
|
class |
Upload
Uploads the artifacts of a
Configuration to a set of repositories. |
| Modifier and Type | Method and Description |
|---|---|
<T extends Task> |
TaskContainer.add(String name,
Class<T> type)
Creates a
Task with the given name and type, and adds it to this container. |
<T extends Task> |
TaskContainer.replace(String name,
Class<T> type)
Creates a
Task with the given name and type, and adds it to this container, replacing any existing
task of the same name. |
| Modifier and Type | Method and Description |
|---|---|
Task |
TaskContainer.add(Map<String,?> options)
Creates a
Task and adds it to this container. |
Task |
TaskContainer.add(Map<String,?> options,
Closure configureClosure)
Creates a
Task adds it to this container. |
Task |
TaskContainer.add(String name)
Creates a
Task with the given name and adds it to this container. |
Task |
TaskContainer.add(String name,
Closure configureClosure)
Creates a
Task with the given name adds it to this container. |
Task |
TaskContainer.findByPath(String path)
Locates a task by path.
|
Task |
TaskContainer.getByPath(String path)
Locates a task by path.
|
Task |
TaskExecutionException.getTask() |
Task |
TaskContainer.replace(String name)
Creates a
Task with the given name and adds it to this container, replacing any existing task with the
same name. |
| Modifier and Type | Method and Description |
|---|---|
Set<? extends Task> |
TaskDependency.getDependencies(Task task)
Determines the dependencies for the given
Task. |
| Modifier and Type | Method and Description |
|---|---|
Set<? extends Task> |
TaskDependency.getDependencies(Task task)
Determines the dependencies for the given
Task. |
| Modifier and Type | Method and Description |
|---|---|
void |
TaskOutputs.upToDateWhen(Spec<? super Task> upToDateSpec)
Adds a predicate to determine whether the outputs of this task are up-to-date.
|
| Constructor and Description |
|---|
TaskExecutionException(Task task,
Throwable cause) |
| Modifier and Type | Class and Description |
|---|---|
class |
AntTarget
A task which executes an Ant target.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractArchiveTask
AbstractArchiveTask is the base class for all archive tasks. |
class |
Tar
Assembles a TAR archive.
|
class |
Zip
Assembles a ZIP archive.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCompile
The base class for all JVM-based language compilation tasks.
|
class |
Compile
Compiles Java source files.
|
class |
GroovyCompile
Compiles Groovy source files, and optionally, Java source files.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractReportTask
The base class for all project report tasks.
|
class |
DependencyReportTask
Displays the dependency tree for a project.
|
class |
ProjectReportTask
Displays a list of projects in the build.
|
class |
PropertyReportTask
Displays the properties of a project.
|
class |
TaskReportTask
Displays a list of tasks in the project.
|
| Modifier and Type | Method and Description |
|---|---|
TaskDetails |
TaskDetailsFactory.create(Task task) |
| Modifier and Type | Method and Description |
|---|---|
void |
SingleProjectTaskReportModel.build(Collection<? extends Task> tasks) |
| Modifier and Type | Class and Description |
|---|---|
class |
Groovydoc
Generates HTML API documentation for Groovy source, and optionally, Java source.
|
class |
Javadoc
Generates HTML API documentation for Java classes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ScalaCompile
Compiles Scala source files, and optionally, Java source files.
|
class |
ScalaDoc
Generates HTML API documentation for Scala source files.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Test
Executes tests.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Wrapper
Generates scripts (for *nix and windows) which allow you to build your project with Gradle, without having to
install Gradle.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Help |
| Modifier and Type | Method and Description |
|---|---|
List<Task> |
DefaultTaskGraphExecuter.getAllTasks() |
Set<Task> |
TaskSelector.getTasks() |
com.google.common.collect.SetMultimap<String,Task> |
TaskNameResolver.select(String name,
Project project) |
com.google.common.collect.SetMultimap<String,Task> |
TaskNameResolver.selectAll(String name,
Project project) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DefaultTaskGraphExecuter.hasTask(Task task) |
void |
TaskFailureHandler.onTaskFailure(Task task)
Called when execution for a task fails.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TaskGraphExecuter.addTasks(Iterable<? extends Task> tasks)
Adds the given tasks and their dependencies to this graph.
|
void |
DefaultTaskGraphExecuter.addTasks(Iterable<? extends Task> tasks) |
void |
DefaultTaskGraphExecuter.execute(Iterable<? extends Task> tasks) |
void |
TaskGraphExecuter.useFilter(Spec<? super Task> filter)
Sets the filter to use when adding tasks to this graph.
|
void |
DefaultTaskGraphExecuter.useFilter(Spec<? super Task> filter) |
| Modifier and Type | Class and Description |
|---|---|
class |
GeneratorTask<T>
A
GeneratorTask generates a configuration file based on a domain object of type T. |
class |
PropertiesGeneratorTask<T extends PersistableConfigurationObject>
A convenience superclass for those tasks which generate Properties configuration files from a domain object of type T.
|
class |
XmlGeneratorTask<T extends PersistableConfigurationObject>
A convenience superclass for those tasks which generate XML configuration files from a domain object of type T.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ProfileEventAdapter.afterExecute(Task task,
TaskState state) |
void |
ProfileEventAdapter.beforeExecute(Task task) |
TaskExecution |
ProjectProfile.getTaskProfile(Task task)
Gets the task profiling container for the specified task.
|
| Constructor and Description |
|---|
TaskExecution(Task task) |
| Modifier and Type | Method and Description |
|---|---|
Set<Task> |
TasksFactory.getTasks(Project project) |
Copyright © 2013. All rights reserved