eclipse“部署程序集”配置在哪个文件中?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12819465/
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
In which file eclipse "deployment assembly" configurations are at?
提问by Renato Gama
I can't seem to find this configuration at .project file. I am looking for a way to change this setting programmatically as "I don't know why" my eclipse is losing this configuration every time I clean the project.
我似乎无法在 .project 文件中找到此配置。我正在寻找一种以编程方式更改此设置的方法,因为“我不知道为什么”我的 Eclipse 每次清理项目时都会丢失此配置。
回答by Nick Wilson
The deployment assembly settings are stored in the file:
部署程序集设置存储在文件中:
.settings/org.eclipse.wst.common.component
However, in a basic J2EE Eclipse install this file shouldn't be modified by cleaning the project. Maybe you have some other plugin installed that is updating the deployment settings during the build.
但是,在基本的 J2EE Eclipse 安装中,不应通过清理项目来修改此文件。也许您安装了一些其他插件,用于在构建期间更新部署设置。
回答by Sethu S
I faced the same problem and the reason being that the file .settings/org.eclipse.wst.common.componentcontained entries added by Git. On removing them, and restarting the eclipse worked for me.
我遇到了同样的问题,原因是文件.settings/org.eclipse.wst.common.component包含由 Git 添加的条目。删除它们并重新启动日食对我有用。