ivy cleancache 但特定文件夹 [英] ivy cleancache but specific folders
问题描述
我们在远程存储库中有一些内部 jar,并且不经常构建它们.解析器如下所示:view-snapshots 是本地存储库,而 hub-releases 是共享存储库.
We have some internal jars in a remote repository and do not build them very often.The resolver looks like this: view-snapshots is a local repo and hub-releases is a shared repo.
<chain name="hub-internal-library-chain" returnFirst="true">
<resolver ref="view-snapshots"/>
<resolver ref="hub-releases"/>
</chain>
默认情况下,如果开发者发布任何内容,它会进入视图快照缓存.我们需要保留标志
By default,if a developer publishes anything it goes to view-snapshots cache.We need to keep the flag
首先返回-真"
对于性能问题.所以我想删除缓存(本地)和存储库(本地)中的一些特定文件的问题.我是常春藤的新手,任何帮助将不胜感激.
for performance issues.So the issue I want to delete some specific files in cache(local) and repository(local).I am a newbie to ivy,any help will be appreciated.
谢谢
PS:这个问题我已经看过了,和我的很相似,但是还没有解决.http://grokbase.com/t/ant/ivy-user/105d2bxpyy/refreshing-ivy-cache-after-changed-a-published-version
PS: I have already had a look at this question which is similar to mine.But its not solved yet. http://grokbase.com/t/ant/ivy-user/105d2bxpyy/refreshing-ivy-cache-after-changing-a-published-version
推荐答案
Ivy 中没有专门的代码删除缓存中只有一个模块的条目.
There is no dedicated code in Ivy which delete the entries of only one module in a cache.
但是使用常规的 Ant 任务很容易做到.假设你有默认模式的默认缓存,这里是一段build.xml,它将删除公司com.acme
的模块foo
的缓存:>
But it is quite easy to do with regular Ant tasks. Assuming you have the default cache with the default pattern, here a piece of build.xml which will delete the cache of the module foo
of the company com.acme
:
<delete dir="${user.home}/.ivy2/cache/com.acme/foo" />
这篇关于ivy cleancache 但特定文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!