将IntelliJ IDEA创建的Web项目转换为MyEclipse版本的Web项目

将IntelliJ IDEA创建的Web项目转换为MyEclipse版本的Web项目,主要创建如下文件,并修改其中的内容:

一、.project文件(注意前面的·)

Test

org.eclipse.wst.common.project.facet.core.builder

org.eclipse.wst.jsdt.core.javascriptValidator

com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder

org.eclipse.jdt.core.javabuilder

com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator

com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator

org.eclipse.wst.validation.validationbuilder

com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder

com.genuitec.eclipse.ast.deploy.core.deploymentnature

org.eclipse.jem.workbench.JavaEMFNature

com.genuitec.eclipse.j2eedt.core.webnature

org.eclipse.jdt.core.javanature

org.eclipse.wst.jsdt.core.jsNature

org.eclipse.wst.common.project.facet.core.nature

org.eclipse.wst.common.modulecore.ModuleCoreNature

主要修改的是name,将name修改为你具体工程的名称。

二、.classpath

主要修改的是src属性和output属性,修改为你工程具体的路径,例如,本人的web元素是放在web下的,MyEclipse创建的工程默认是放在WebRoot目录下的

三、.mymetadata

  type=”WEB”

  name=”Test”

  id=”myeclipse.1407308101935″

  context-root=”/Test”

  j2ee-spec=”6.0″

  archive=”Test.war”>

 

   

 

修改具体对应的项目名称为你工程对应的

四、创建目录.settings

在该目录下主要创建如下6个文件:

(1) org.eclipse.core.resources.prefs

#Wed Aug 06 15:01:06 CST 2014

eclipse.preferences.version=1

encoding/=UTF-8

(2) org.eclipse.jdt.core.prefs

#Wed Aug 06 14:55:08 CST 2014

eclipse.preferences.version=1

org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled

org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6

org.eclipse.jdt.core.compiler.compliance=1.6

org.eclipse.jdt.core.compiler.problem.assertIdentifier=error

org.eclipse.jdt.core.compiler.problem.enumIdentifier=error

org.eclipse.jdt.core.compiler.source=1.6

(3) org.eclipse.wst.common.component

   

       

       

     

       

   

修改每个路径为你工程目录对应的路径

(4) org.eclipse.wst.common.project.facet.core.xml

 

 

 

 

(5) org.eclipse.wst.jsdt.ui.superType.container

空目录,创建这个文件即可;

(6) org.eclipse.wst.jsdt.ui.superType.name

空目录,创建这个文件即可。

执行完上述步骤之后,就可以使用MyEclipse的import选项导入进去了。

IntelliJ IDEA: 字体美化(anti-aliased)和字体添加 http://www.linuxidc.com/Linux/2013-11/92609.htm

IntelliJ IDEA 12 创建Web项目图文详细教程 http://www.linuxidc.com/Linux/2013-05/84213.htm

用IntelliJ IDEA开发Android程序图文教程 http://www.linuxidc.com/Linux/2013-03/81471.htm

IntelliJ IDEA 12开发haXe NME应用配置指南 http://www.linuxidc.com/Linux/2013-01/77227.htm

IntelliJ IDEA运行Play Framework的test mode http://www.linuxidc.com/Linux/2013-07/87694.htm

Ubuntu 13.04 安装IntelliJ IDEA 12 http://www.linuxidc.com/Linux/2013-11/93014.htm

IntelliJ IDEA 12创建Maven管理的Java Web项目(图解) http://www.linuxidc.com/Linux/2014-04/99687p2.htm

IntelliJ IDEA 的详细介绍请点这里
IntelliJ IDEA 的下载地址请点这