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