Eclipse清理 - 什么是“.index”文件 - 我可以安全地删除它们吗? [英] Eclipse cleanup - what are the ".index" files - can I safely delete them?

查看:678
本文介绍了Eclipse清理 - 什么是“.index”文件 - 我可以安全地删除它们吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试减少我的(DB同步)工作空间的大小 - 意识到文件夹

  $ {workspace_loc} \ .metadata\.plugins\org.eclipse.jdt.core 

正在服用〜35 Mbytes - 文件夹的内容是 .index 文件(占用最多的空间)和其他文件(这是一对Kb值):

  [0-9] * \.index 
externalLibsTimeStamps
indexNamesMap.txt
invalidArchivesCache
javaLikeNames.txt
nonChainingJarsCache
participantIndexNames.txt
savedIndexNames.txt
variablesAndContainers.dat


$ b $我似乎无法找到那些文件。我可以安全地删除它们吗?你可以指出我在JDT插件文件夹中包含的一些文档/文件包含在 $ {workspace_location} \.metadata\ 目录中?

有没有任何方式通过gui清理缓存(最好定期)?



PS:我在开普勒如果这有差异
PS2:链接到文件可能是代码注释的链接,这样

解决方案

是的,你可以安全地删除它们,但这不是很有用。 / p>

根据如何访问Eclipse JDT索引的答案,这些文件是当您使用打开类型...(在Refactor>打开类型...或通过Ctrl + Shift + T)。所以如果你删除它们,下次你要打开一个类使用打开类型...类将被重建索引。



因此,为了清除它节省空间没有意义,因为它将被重新创建。删除是有用的,如果你认为你有一些搞砸了你的索引,这是一种更新方式,正如所提到的答案建议。


Trying to reduce the size of my (DB synced) workspace - realized that the folder

${workspace_loc}\.metadata\.plugins\org.eclipse.jdt.core

was taking ~35 Mbytes - the contents of the folder are .index files (which take the most space) and some others (which are a couple Kb worth) :

[0-9]*\.index
externalLibsTimeStamps
indexNamesMap.txt
invalidArchivesCache
javaLikeNames.txt
nonChainingJarsCache
participantsIndexNames.txt
savedIndexNames.txt
variablesAndContainers.dat

I can't seem to be able to find docs on those. Can I safely delete them ? Can you point me to some docs on the JDT plugin folders/files contained in ${workspace_location}\.metadata\ directory ?
Is there any way via the gui to clean up the caches (preferably periodically) ?

PS : I 'm on Kepler if this makes a difference PS2 : links to docs may be links to code comments and such

解决方案

Yes, you can safely delete them, but it is not very useful.

According to an answer to How would you access Eclipse JDT index?, these files are the class index used when you "Open Type..." (in Refactor>Open Type... or via Ctrl+Shift+T). So if you delete them, next time you want to open a class using "Open Type..." the classes will be reindexed.

Therefore, deleting it for the sake of saving space has little sense, as it will be re-created. Deleting is however useful if you think you have something messed up in your index, it is a way to update it, as the refered answer suggests.

这篇关于Eclipse清理 - 什么是“.index”文件 - 我可以安全地删除它们吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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