Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit .settings/org.eclipse.wst.common.component using Eclipse IDE

Tags:

java

eclipse

I have cloned a new project from the old one using 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

<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?


.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.

like image 740
Khanh Tran Avatar asked Jun 18 '26 02:06

Khanh Tran


2 Answers

This is answered in https://stackoverflow.com/a/24890409

Right-clicking on an EAR project > Properties > Deployment Assembly.

like image 199
yjsa Avatar answered Jun 19 '26 17:06

yjsa


The file is edited with the properties dialog "Deployment assembly": 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:

Eclipse Deployment Assembly does not appear in properties

like image 20
MBungart Avatar answered Jun 19 '26 15:06

MBungart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!