用wtp部署myeclipse项目

来源:互联网 发布:画板软件哪个好 编辑:程序博客网 时间:2024/04/29 01:36
好友给演示了galileo eclipse的debug功能,让我决定用它,可是以前的项目不太容易在galileo上部署,我只能新建一个dynamic web项目的时候指定要部署到的容器,网上找了好多资料如何更容易的部署,搞了半天,终于搞好,贴这里共大伙参考:假如现在有一个web项目是用myeclipse,打开galileo eclipse后,直接通过“import”将项目导入进来,然后:
1,在.project文件的<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>
2,在<buildSpec></buildSpec>中加入
<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,更改.setting目录下的org.eclipse.wst.common.component文件对应的文件目录项src、webroot这些的路径跟实际的相符就行,主要注意将webcontent更改为实际的WebRroot
更详细的信息可以看看这里http://www.bhcode.net/article/20090323/4476.html
原创粉丝点击