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