Package org.gradle.api.tasks.ant
Class AntTarget
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
org.gradle.api.tasks.ant.AntTarget
- All Implemented Interfaces:
Comparable<Task>
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.IConventionAware
,org.gradle.api.internal.TaskInternal
,ExtensionAware
,Task
,org.gradle.util.Configurable<Task>
public class AntTarget
extends org.gradle.api.internal.ConventionTask
A task which executes an Ant target.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
Task.Namer
-
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Returns the Ant project base directory to use when executing the target.Returns the description of this task.org.apache.tools.ant.Target
Returns the Ant target to execute.void
setBaseDir
(File baseDir) Sets the Ant project base directory to use when executing the target.void
setDescription
(String description) Sets a description for this task.void
setTarget
(org.apache.tools.ant.Target target) Sets the Ant target to execute.Methods inherited from class org.gradle.api.internal.ConventionTask
conventionMapping, conventionMapping, getConventionMapping
Methods inherited from class org.gradle.api.DefaultTask
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
Methods inherited from class org.gradle.api.internal.AbstractTask
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
-
Constructor Details
-
AntTarget
public AntTarget()
-
-
Method Details
-
executeAntTarget
protected void executeAntTarget() -
getTarget
Returns the Ant target to execute. -
setTarget
public void setTarget(org.apache.tools.ant.Target target) Sets the Ant target to execute. -
getBaseDir
Returns the Ant project base directory to use when executing the target. -
setBaseDir
Sets the Ant project base directory to use when executing the target. -
getDescription
Returns the description of this task.- Specified by:
getDescription
in interfaceTask
- Overrides:
getDescription
in classorg.gradle.api.internal.AbstractTask
- Returns:
- the description. May return null.
-
setDescription
Sets a description for this task. This should describe what the task does to the user of the build. The description will be displayed whengradle tasks
is called.- Specified by:
setDescription
in interfaceTask
- Overrides:
setDescription
in classorg.gradle.api.internal.AbstractTask
- Parameters:
description
- The description of the task. Might be null.
-