myEclipse项目转成Eclipse项目

这里说一种把myEclipse项目转成Eclipse项目继续开发html

 

1.  请首先确保你的eclipse是javaee版本的,或者已经安装看wtp插件java


2.  而后修改eclipse工程下的.project文件:web

 

3. 在<natures></natures>中加入app

 

[html]  view plain copy
  1. <nature>org.eclipse.wst.common.project.facet.core.nature</nature>   
  2. <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>   
  3. <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>  


4. 在<buildSpec></buildSpec>中加入eclipse

 

 

[html]  view plain copy
  1. <buildCommand>   
  2.     <name>org.eclipse.wst.common.project.facet.core.builder</name>   
  3.     <arguments>   
  4.     </arguments>   
  5. </buildCommand>   
  6. <buildCommand>   
  7.     <name>org.eclipse.wst.validation.validationbuilder</name>   
  8.     <arguments>   
  9.     </arguments>   
  10. </buildCommand>  

 

5. 刷新项目,项目->右击->Properties->Project Facets->Modify Project,选择Java和Dynamic Web Module配置Context Root 和Content Directory 以及源码路径ide

6. 第5步没有的话,找到项目的.setting目录,修改org.eclipse.wst.common.component  里面的oop

[html]  view plain copy
  1. <wb-module   deploy-name"Demo ">  
  2. <wb-resource   deploy-path"/ "   source-path"/WebRoot "/>  

这两个便可,deploy-name   为工程名,source-   path= "/WebRoot "eclipse下默认为WebContent修改成WebRoot

ui

 



相关文章
相关标签/搜索