是否有可能完全关闭常春藤的缓存? [英] Is it possible to turn off ivy's cache altogether?

查看:160
本文介绍了是否有可能完全关闭常春藤的缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我说的是常春藤2,而不是一些较新的版本。

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

推荐答案

关掉缓存对性能的影响。关闭它失去的依赖管理很大的好处之一,因为你会强迫每个构建下载的一切....

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

这篇关于是否有可能完全关闭常春藤的缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆