Eclipse 工作区中的 .metadata 文件夹是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19996170/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the .metadata folder in Eclipse workspace?
提问by Erel Segal-Halevi
My "workspace" folder includes a hidden folder called ".metadata". Is it important to backup this folder regularly?
我的“工作区”文件夹包含一个名为“.metadata”的隐藏文件夹。定期备份这个文件夹很重要吗?
回答by greg-449
The .metadata
folder is an area where Eclipse plug-ins can save any information they want to save. This will include things like your preference setting and the index the Java plug-in uses to find classes and methods quickly.
该.metadata
文件夹是 Eclipse 插件可以保存它们想要保存的任何信息的区域。这将包括诸如您的首选项设置和 Java 插件用于快速查找类和方法的索引之类的内容。
It also includes the .log
file where Eclipse logs errors.
它还包括.log
Eclipse 记录错误的文件。
Exactly what is stored there depends on the plug-ins you have installed (one of my plug-ins has a database in the .metadata) so it is a good idea to back it up (along with the projects).
存储在那里的确切内容取决于您安装的插件(我的一个插件在 .metadata 中有一个数据库),因此最好备份它(连同项目)。