- Documentation (2.5.1-local-20221102182706)
- Release Notes
- Tutorials
- Reference
- Introduction
- Settings Files
- Ivy Files
- Ant Tasks
- artifactproperty
- artifactreport
- buildlist
- buildnumber
- buildobr
- cachefileset
- cachepath
- checkdepsupdate
- cleancache
- configure
- convertmanifest
- convertpom
- deliver
- dependencytree
- findrevision
- fixdeps
- info
- install
- listmodules
- makepom
- post resolve tasks
- publish
- report
- repreport
- resolve
- resources
- retrieve
- settings
- var
- Using standalone
- OSGi
- Developer doc
cleancache
[since 2.0]
Cleans the Ivy cache.
This task is roughly equivalent to:
<delete dir="${ivy.cache.dir}"/>
Using the regular Ant delete task is more flexible, since it allows to specify the files to delete. But it requires Ivy settings to be loaded, and settings scoping is possible only by using a suffixed Ant property for the cache directory.
This task loads the Ivy settings as any other post settings task, and allows easy scoping with the attribute settingsRef
.
Attributes
Attribute | Description | Required |
---|---|---|
settingsRef |
A reference to Ivy settings that must be used by this task |
No. Defaults to |
Examples
<ivy:cleancache/>
Cleans the cache directory as defined in the loaded settings (by default ~/.ivy2/cache
)
<ivy:cleancache settingsRef="mysettings"/>
Cleans the cache directory as defined in the loaded settings identified as mysettings