[英]Edit .settings/org.eclipse.wst.common.component using Eclipse IDE
I have cloned a new project from the old one using Eclipse Java EE IDE (Helios SR2). 我已经使用Eclipse Java EE IDE(Helios SR2)从旧项目克隆了一个新项目。
After renaming context, components, folders, file name etc... I still have the following file .settings/org.eclipse.wst.common.component
keeping the old project name: OLDPROJECT 重命名上下文,组件,文件夹,文件名等之后……我仍然拥有以下文件
.settings/org.eclipse.wst.common.component
保留了旧的项目名称: OLDPROJECT
<wb-module deploy-name="OLDPROJECT">
and 和
<property name="java-output-path" value="/OLDPROJECT/build/classes"/>
I tried to look for it in Project -> Properties but failed. 我试图在“项目”->“属性”中查找它,但是失败了。 So, could you please tell me how I can edit the file using Eclipse IDE?
那么,能否请您告诉我如何使用Eclipse IDE编辑文件?
.settings/org.eclipse.wst.common.component
<wb-module deploy-name="OLDPROJECT">
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<property name="java-output-path" value="/OLDPROJECT/build/classes"/>
<property name="context-root" value="NEWPROJECT"/>
</wb-module>
</project-modules>
Thanks for your help. 谢谢你的帮助。
The file is edited with the properties dialog "Deployment assembly": https://eclipse.org/webtools/releases/3.2.0/NewAndNoteworthy/javaee.php 使用属性对话框“部署程序集”编辑该文件: https : //eclipse.org/webtools/releases/3.2.0/NewAndNoteworthy/javaee.php
If the dialog does not show up in project properties add org.eclipse.wst.common.modulecore.ModuleCoreNature to your .project file: 如果对话框未显示在项目属性中,则将org.eclipse.wst.common.modulecore.ModuleCoreNature添加到您的.project文件中:
Eclipse Deployment Assembly does not appear in properties Eclipse Deployment Assembly没有出现在属性中
This is answered in https://stackoverflow.com/a/24890409 这在https://stackoverflow.com/a/24890409中得到了回答
Right-clicking on an EAR project > Properties > Deployment Assembly. 右键单击EAR项目>属性>部署程序集。
It does not look like there is a way to edit this attribute from project properties. 似乎没有一种方法可以从项目属性中编辑此属性。 It does update correctly when you rename the project.
重命名项目时,它确实可以正确更新。 You will need to update the configuration file directly.
您将需要直接更新配置文件。
Ctrl-H, File search tab, enter 'deploy-name' in containing text
field. Ctrl-H,“文件搜索”选项卡,在
containing text
字段中输入“ deploy-name”。 Hit enter. 按回车。
Then org.eclipse.wst.common.component
will be a result. 然后将成为
org.eclipse.wst.common.component
。 Double-click and edit it. 双击并编辑它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.