Class IvyTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.ivy.ant.IvyTask
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ConvertManifestTask, IvyBuildList, IvyBuildNumber, IvyCheck, IvyCleanCache, IvyConvertPom, IvyDeliver, IvyFindRevision, IvyInfo, IvyInstall, IvyListModules, IvyMakePom, IvyPostResolveTask, IvyPublish, IvyReport, IvyRepositoryReport, IvyResolve, IvyVar
public abstract class IvyTask
extends org.apache.tools.ant.Task
Base class for all ivy ant tasks, deal particularly with ivy instance storage in ant project.
-
Field Summary
FieldsFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInforms the user that the cache attribute is not supported any more.abstract voidThe real logic of task execution after project has been set in the context.protected booleandoValidate(IvySettings ivy) final voidexecute()Ant task execute.protected voidCalled when task is about to finish Should clean up all state related information (stacks for example)protected Ivyprotected StringgetProperty(String value, IvySettings ivy, String name) protected StringgetProperty(String value, IvySettings ivy, String name, String resolveId) protected StringgetProperty(IvySettings ivy, String name) protected StringgetProperty(IvySettings ivy, String name, String resolveId) protected static DategetPubDate(String date, Date def) protected String[]getResolvedConfigurations(String org, String module, boolean strict) protected <T> TgetResolvedDescriptor(String resolveId) protected <T> TgetResolvedDescriptor(String resolveId, boolean strict) protected <T> TgetResolvedDescriptor(String org, String module) protected <T> TgetResolvedDescriptor(String org, String module, boolean strict) protected ResolveReportgetResolvedReport(String org, String module, String resolveId) protected IvySettingsorg.apache.tools.ant.types.Referencebooleanprotected StringmergeConfs(String[] conf) protected voidCalled when task starts its execution.protected voidsetResolved(ResolveReport report, boolean keep) protected voidsetResolved(ResolveReport report, String resolveId, boolean keep) voidsetSettingsRef(org.apache.tools.ant.types.Reference ref) voidsetValidate(boolean validate) protected String[]splitConfs(String conf) toString()Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
ANT_PROJECT_CONTEXT_KEY
- See Also:
-
-
Constructor Details
-
IvyTask
public IvyTask()
-
-
Method Details
-
doValidate
-
isValidate
public boolean isValidate() -
setValidate
public void setValidate(boolean validate) -
setSettingsRef
public void setSettingsRef(org.apache.tools.ant.types.Reference ref) -
getSettingsRef
public org.apache.tools.ant.types.Reference getSettingsRef() -
getSettings
-
getIvyInstance
-
setResolved
-
setResolved
-
getResolvedConfigurations
-
getResolvedDescriptor
-
getResolvedDescriptor
-
getResolvedDescriptor
-
getResolvedDescriptor
-
getResolvedReport
-
splitConfs
-
mergeConfs
-
getPubDate
-
getProperty
-
getProperty
-
getProperty
-
getProperty
-
prepareTask
protected void prepareTask()Called when task starts its execution. -
finalizeTask
protected void finalizeTask()Called when task is about to finish Should clean up all state related information (stacks for example) -
execute
public final void execute() throws org.apache.tools.ant.BuildExceptionAnt task execute. Calls prepareTask, doExecute, finalizeTask- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
doExecute
public abstract void doExecute() throws org.apache.tools.ant.BuildExceptionThe real logic of task execution after project has been set in the context. MUST be implemented by subclasses- Throws:
org.apache.tools.ant.BuildException- if something goes wrong
-
toString
-
cacheAttributeNotSupported
protected void cacheAttributeNotSupported()Informs the user that the cache attribute is not supported any more.
-