In fact, there is no problem with having an “older” jar in your cache. If your project does not need an old can, Ivy will simply ignore it. An old bank takes about 50 kilobytes in your system. In the era of terabyte drives, it is not worth the time and effort to free up space.
Ivy’s cache refers precisely to this: cache. This is for ALL of your projects that use Ivy. If an older project requires version 1.0.4 for a public jar, it will already be in the Ivy cache and should not be loaded, so, like good caches, it saves you time and effort.
<ivy:cleancache>, : . 1.0.4 jar, 1.1.1. , , , , .
, <ivy:cleancache>: Ivy , . , , .
Ivy, , <ivy:cleancache> :
<delete dir="${ivy.cache.dir}" />
, selector:
<delete dir="${ivy.cache.dir}">
<date datetime="01/01/2010 12:00 AM" when="before"/>
<include name="*.jar"/>
</delete>
, , .
Ivy . Ivy , , .