`

修改MyEclips中部署到web容器中到项目名称

阅读更多
修改MyEclips中部署到web容器中到项目名称步骤

  • 1。对工程重命名(选择工程,右键Refactor->Rename)
  • 2。修改Web路径(选择工程,右键Properties->MyEclipse->web,修改Web Context-root的值)
  • 3。修改工程代码(修改替换源程序中涉及到原工程名的地方,通常只在有链接到.do的地方有原工程名。除非你总是习惯写绝对路径)
  •   




呵呵,修改MyEclips中部署到web容器中到项目名称重新发布一下就ok!
如果用war的打包方式发布,直接更名更简捷



对应代码:
[list]
  • 打开工程所在目录,找到一个 .project的文件
  • [*]
    [*]<?xml version="1.0" encoding="UTF-8"?>
    [*]<projectDescription>
    [*][color=red]	<name>fuNan_conv</name>[/color]
    [*]//改成你要更名的项目名称
    [*]	<comment></comment>
    [*]	<projects>
    [*]	</projects>
    [*]	<buildSpec>
    [*]		<buildCommand>
    [*]			<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
    [*]			<arguments>
    [*]			</arguments>
    [*]		</buildCommand>
    [*]		<buildCommand>
    [*]			<name>org.eclipse.jdt.core.javabuilder</name>
    [*]			<arguments>
    [*]			</arguments>
    [*]		</buildCommand>
    [*]		<buildCommand>
    [*]			<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
    [*]			<arguments>
    [*]			</arguments>
    [*]		</buildCommand>
    [*]		<buildCommand>
    [*]			<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
    [*]			<arguments>
    [*]			</arguments>
    [*]		</buildCommand>
    [*]		<buildCommand>
    [*]			<name>org.eclipse.wst.validation.validationbuilder</name>
    [*]			<arguments>
    [*]			</arguments>
    [*]		</buildCommand>
    [*]		<buildCommand>
    [*]			<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
    [*]			<arguments>
    [*]			</arguments>
    [*]		</buildCommand>
    [*]	</buildSpec>
    [*]	<natures>
    [*]		<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
    [*]		<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
    [*]		<nature>org.eclipse.jdt.core.javanature</nature>
    [*]	</natures>
    [*]</projectDescription>
  • 打开工程所在目录,找到一个 .mymetadata的文件
  • [*]
    <?xml version="1.0" encoding="UTF-8"?>
    [*]<project-module
    [*]  type="WEB"
    [*]  name="fuNan_conv"
    [*]  id="myeclipse.1248943689265"
    [*][color=red]  context-root="/fuNan_conv"[/color]
    [*]//改成你要更名的项目名称
    [*]  j2ee-spec="1.4"
    [*]  archive="fuNan_conv.war">
    [*]  <attributes>
    [*]    <attribute name="webrootdir" value="/fnconv" />
    [*]  </attributes>
    [*]</project-module>

    [/list]
    分享到:
    评论

    相关推荐

    Global site tag (gtag.js) - Google Analytics