org.apache.ivy.ant

Class IvyCleanCache

public class IvyCleanCache extends IvyTask

Cleans the content of Ivy cache(s).
Field Summary
static StringALL
static StringNONE
Method Summary
voiddoExecute()
StringgetCache()
booleanisResolution()
voidsetCache(String cache)
Sets the name of the repository cache to clean, '*' for all caches, 'NONE' for no repository cache cleaning at all.
voidsetResolution(boolean resolution)
Sets weither the resolution cache should be cleaned or not.

Field Detail

ALL

public static final String ALL

NONE

public static final String NONE

Method Detail

doExecute

public void doExecute()

getCache

public String getCache()

isResolution

public boolean isResolution()

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.

setResolution

public void setResolution(boolean resolution)
Sets weither the resolution cache should be cleaned or not.

Parameters: resolution true if the resolution cache should be cleaned, false otherwise.