如何将eclipse Web项目的WebContent文件夹更改为不同的东西? [英] How do I change in an eclipse web project the WebContent folder to something different?

查看:338
本文介绍了如何将eclipse Web项目的WebContent文件夹更改为不同的东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用伽利略版本,终于可以将普通Java项目转换为动态Web项目。不幸的是,它假定Web东西位于一个文件夹WebContent中,这不一定是现有项目的情况。我该怎么改呢?在MyEclipse中,这很简单,但是有一个库存eclipse,我没有找到这样的选择!

解决方案

我不确定您的意思是日食,但Helios允许以非常直接的方式实现此功能:

  • 右键单击您的动态Web项目并打开属性。
  • 查找部署程序集,您应该可以从那里设置上下文路径。

  • With the Galileo release it is finally possible to convert a normal Java project to a dynamic web project. Unfortunately it assumes that the Web stuff is located in a folder WebContent, which is not necessarily the case for an existing project. How can I change it? In MyEclipse it is quite easy, but with a stock eclipse I don't find such an option!

    解决方案

    I am not sure what you meant by "a stock eclipse", but Helios allows this functionality in a very straight-forward way:

  • Right click your dynamic web project and open "Properties".
  • Find Deployment Assembly and you should be able to set context paths from there.
  • 这篇关于如何将eclipse Web项目的WebContent文件夹更改为不同的东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆