巷尾的酒吧

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  64 Posts :: 0 Stories :: 5 Comments :: 0 Trackbacks
公司拿到手的项目开发平台都不统一。有的是myEclipse开发的,有的是Eclipse for J2EE开发的。 

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


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


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

3.在<natures></natures>中加入 
    <nature>org.eclipse.wst.common.project.facet.core.nature</nature> 
    <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> 
    <nature>org.eclipse.jem.workbench.JavaEMFNature</nature> 
4. 在<buildSpec>< ildSpec>中加入 
    <buildCommand> 
        <name>org.eclipse.wst.common.project.facet.core.builder</name> 
        <arguments> 
        </arguments> 
    </buildCommand> 
    <buildCommand> 
        <name>org.eclipse.wst.validation.validationbuilder</name> 
        <arguments> 
        </arguments> 
     < /buildCommand> 
5. 刷新项目,项目->右击->Properties->Project Facets->Modify Project,选择Java和Dynamic Web Module配置Context Root 和Content Directory 以及源码路径 
6. 第5步没有的话,找到项目的.setting目录,修改org.eclipse.wst.common.component  里面的 
<wb-module   deploy-name= "Demo "> 
<wb-resource   deploy-path= "/ "   source-path= "/WebRoot "/> 

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


svn 
http://subclipse.tigris.org/update_1.6.x 


-Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxNewSize=256m -XX:MaxPermSize=256m
posted on 2012-11-10 16:00 abing 阅读(262) 评论(0)  编辑  收藏 所属分类: eclipse

只有注册用户登录后才能发表评论。


网站导航: