ITeye博客

(转)把MyEclipse项目转换为WTP项目

morzya · 2010-02-21 12:01 · 编程语言 · Markdown

1.在Eclipse里导入MyEclipse项目到工作空间。 2.编辑.project文件, 在中加入

<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>

在节点加入

<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>

3.在Eclipse中刷新项目。 4.右击项目-->Properties—>Project Facets,在右边勾选Java与Dynamic Web Module,应用。 5.如果你的项目源代码文件夹不是WTP默认的src,则需要到Java Build Path中去添加相应源代码文件夹。 6.如果你的项目Web文件夹不是WTP默认的WebContent,则需要文件文件 <项目目录>/.settings/org.eclipse.wst.common.component,找到 并修改,如

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。