简体   繁体   English

使用Eclipse IDE编辑.settings / org.eclipse.wst.common.component

[英]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.

相关问题 什么是org.eclipse.wst.common.component以及如何将它用于ant - what is org.eclipse.wst.common.component and how to use it for ant Eclipse M2E更改org.eclipse.wst.common.component - Eclipse M2E changing org.eclipse.wst.common.component Eclipse无法解析插件org.eclipse.wst.server.ui - Eclipse unable to resolve plugin org.eclipse.wst.server.ui 我可以创建 websphere 服务器实例并使用 org.eclipse.wst.server.core 插件进行配置吗? - Can i create websphere server instance and configure using org.eclipse.wst.server.core plugin? 在 SWT 对话框中嵌入 org.eclipse.wst.sse.ui.StructuredTextEditor - embed org.eclipse.wst.sse.ui.StructuredTextEditor in SWT Dialog 无法在Eclipse 3.7.2上安装WST - Can not install WST on Eclipse 3.7.2 ClassNotFoundException 使用 org.apache.commons.collections 在 Eclipse Z581D6381F35E4B36F97 - ClassNotFoundException issues using org.apache.commons.collections in Eclipse IDE 访问工作空间\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp0\\wtpwebapps\\中的文件 - Access files inside workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ 找不到org.eclipse.wst.server.core.serverTypes扩展点的架构 - No schema found for the org.eclipse.wst.server.core.serverTypes extension point 关于Java中Web应用程序的“org.eclipse.wst.server.core”文件夹的一般问题很少 - Few general questions about “org.eclipse.wst.server.core” folder of a web application in Java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM