Is it possible to turn off ivy's cache altogether?

大兔子大兔子 提交于 2019-12-11 05:57:19

问题


I'm talking about ivy 2, not some newer version.


回答1:


Switching off the cache affects performance. Switching it off loses one of the big benefits of dependency management, because you'd force each build to download everything....

Having said that, over time the cache sometimes become stale, especially in situations where the remote modules might have changing dependencies (Can occur during development). To counter this problem I always include an extra build target that purges my ivy cache:

<target name="clean-all" depends="clean">
    <ivy:cleancache />
</target>

This gives you the best of both worlds. Disabling the cache is accomplished by first running a purge as follows:

ant clean-all build


来源:https://stackoverflow.com/questions/11078774/is-it-possible-to-turn-off-ivys-cache-altogether

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!