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

Source: Internet
Author: User
Tags svn java web

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

On the internet to find a lot, both use.

Say add several properties to the. project file. But I found it all there, whatever it was for me.


Finally, it's self-made!

Start by building a new Java Web Project on Eclips. Copy all of the following files from the [. Settings] directory under the new Web project. To the retrieved Java project, kill all the previous!

This looks like a Web project. But it's not going to webrootj the stuff.

1, change the >> file under the >>>>.settings folder under the project folder:. 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, change the file to change the Webcontext to WebRoot. Replace the project name with the project name you want

Change the >> file under the >>>>.settings folder under the project folder 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.