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,- Named,- ExtensionAware,- Task,- Configurable<Task>
@DisableCachingByDefault(because="Gradle would require more information to cache this task")
public abstract class AntTarget
extends org.gradle.api.internal.ConventionTask
A task which executes an Ant target.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.gradle.api.TaskTask.Namer
- 
Field SummaryFields inherited from interface org.gradle.api.TaskTASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidReturns the Ant project base directory to use when executing the target.Returns the description of this task.org.apache.tools.ant.TargetReturns the Ant target to execute.voidsetBaseDir(File baseDir) Sets the Ant project base directory to use when executing the target.voidsetDescription(String description) Sets a description for this task.voidsetTarget(org.apache.tools.ant.Target target) Sets the Ant target to execute.Methods inherited from class org.gradle.api.internal.ConventionTaskconventionMapping, conventionMapping, getConventionMappingMethods inherited from class org.gradle.api.DefaultTaskcompareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTaskacceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.TaskdoNotTrackState, getConvention, notCompatibleWithConfigurationCache
- 
Constructor Details- 
AntTargetpublic AntTarget()
 
- 
- 
Method Details- 
executeAntTargetprotected void executeAntTarget()
- 
getTargetReturns the Ant target to execute.
- 
setTargetpublic void setTarget(org.apache.tools.ant.Target target) Sets the Ant target to execute.
- 
getBaseDirReturns the Ant project base directory to use when executing the target.
- 
setBaseDirSets the Ant project base directory to use when executing the target.
- 
getDescriptionReturns the description of this task.- Specified by:
- getDescriptionin interface- Task
- Overrides:
- getDescriptionin class- DefaultTask
- Returns:
- the description. May return null.
 
- 
setDescriptionSets a description for this task. This should describe what the task does to the user of the build. The description will be displayed whengradle tasksis called.- Specified by:
- setDescriptionin interface- Task
- Overrides:
- setDescriptionin class- DefaultTask
- Parameters:
- description- The description of the task. Might be null.
 
 
-