Using Eclipse to retrieve MyEclipse Web items built on SVN, as a Java project workaround

Source: Internet
Author: User

Using Eclipse to retrieve MyEclipse Web items built on SVN, as a Java project workaround

Finding a lot on the internet doesn't work.

Say add a few properties to the. project file, but I find it all there, whatever it is for me.


Finally, it's self-made!

First build a new Java Web project on eclips, copy all the files under the [. Settings] folder under the new Web project, and then kill all the previous ones in the Retrieved Java project!

Such a look is a Web project, but can not release WEBROOTJ inside the east

1, modify the >> file under the >>>>.settings folder in the project directory:. Jsdtscope change Webcontext to WebRoot

<?xml version= "1.0" encoding= "UTF-8"?>
<classpath>
<classpathentry kind= "src" path= "WebRoot"/>
<classpathentry kind= "Con" path= "Org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind= "Con" path= "Org.eclipse.wst.jsdt.launching.WebProject" >
<attributes>
<attribute name= "Hide" value= "true"/>
</attributes>
</classpathentry>
<classpathentry kind= "Con" path= "org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind= "Output" path= ""/>
</classpath>


2, modify the file to change the Webcontext into WebRoot. Replace the project name with the project name you want

Modify the >> file under the >>>>.settings folder under the project directory Org.eclipse.wst.common.component


<?xml version= "1.0" encoding= "UTF-8"? ><project-modules id= "Modulecoreid" project-version= "1.5.0" >
<wb-module deploy-name= "Meeting" >
<wb-resource deploy-path= "/" source-path= "/webroot" tag= "Defaultrootsource"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/src"/>
<property name= "Context-root" value= "meeting"/>
<property name= "Java-output-path" value= "/meeting/build/classes"/>
</wb-module>
</project-modules>

Using Eclipse to retrieve MyEclipse Web items built on SVN, as a Java project workaround

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.