Class IvyCleanCache

  • All Implemented Interfaces:
    java.lang.Cloneable

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

      • IvyCleanCache

        public IvyCleanCache()
    • Method Detail

      • getCache

        public java.lang.String getCache()
      • setCache

        public void setCache​(java.lang.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