Class IvyCleanCache

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.ivy.ant.IvyTask
org.apache.ivy.ant.IvyCleanCache
All Implemented Interfaces:
Cloneable

public class IvyCleanCache extends IvyTask
Cleans the content of Ivy cache(s).
  • Field Details

  • Constructor Details

    • IvyCleanCache

      public IvyCleanCache()
  • Method Details

    • getCache

      public String getCache()
    • setCache

      public void setCache(String cache)
      Sets the name of the repository cache to clean, '*' for all caches, 'NONE' for no repository cache cleaning at all.
      Parameters:
      cache - the name of the cache to clean. Must not be null.
    • isResolution

      public boolean isResolution()
    • setResolution

      public void setResolution(boolean resolution)
      Sets whether the resolution cache should be cleaned or not.
      Parameters:
      resolution - true if the resolution cache should be cleaned, false otherwise.
    • doExecute

      public void doExecute() throws org.apache.tools.ant.BuildException
      Description copied from class: IvyTask
      The real logic of task execution after project has been set in the context. MUST be implemented by subclasses
      Specified by:
      doExecute in class IvyTask
      Throws:
      org.apache.tools.ant.BuildException - if something goes wrong