问题描述
在我的 Eclipse 工作区中,我注意到 .metadata 文件夹不断增长.我应该定期删除这个文件夹吗?会有什么后果?
In my Eclipse workspace I've noticed the .metadata folder keeps growing. Should I regularly delete this folder? What would be the consequences of it?
除此之外,.metadata 文件夹还包含哪些信息?
Apart from that, what information does the .metadata folder contain?
推荐答案
删除 all .metadata 文件夹将删除所有 项目参考来自您的工作区.
Deleting all the .metadata folder would remove all your project references from your workspace.
如果您的项目实际上完全存储在工作区中(即其源存储在默认工作区路径中),您也会丢失项目内容 - 更糟糕的是,您将无法重新导入他们.
If your project is actually stored completely in the workspace (i.e. its sources are stored in the default workspace path), you would also lose your project contents as well - which is worse since you wouldn't be able to re-import them.
我始终建议您将 Eclipse 项目及其源代码与工作区分开.
请参阅什么是 Eclipse 创建的src"目录?一个>.
这样,特定于您的项目的设置将保存在您的项目中(.settings 目录),而不是工作区.
此外,您还需要 在项目中移动启动器定义.
I always recommend to keep your Eclipse project and its sources separate from the workspace.
See "What is "src" directory created by Eclipse?".
That way, the settings specific to your projects are saved within your project (in the .settings directory), and not in the workspace.
Also, you need to move your launcher definitions in your project as well.
在该配置中,您可以删除工作区而不会造成太大损坏,只需将项目重新导入新工作区即可.
In that configuration, you can delete a workspace without much damage and simply re-import your project into a new workspace.
这篇关于我应该定期从 Eclipse 工作区中删除 .metadata 文件夹吗?会带来什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)