Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在eclipse中从war中排除/WebContent/images文件夹_Eclipse_Directory_War - Fatal编程技术网

在eclipse中从war中排除/WebContent/images文件夹

在eclipse中从war中排除/WebContent/images文件夹,eclipse,directory,war,Eclipse,Directory,War,如何配置eclipse,使/WebContent下的/images文件夹不包含在war导出的文件中?我了解了如何排除/src容器下的文件和文件夹。我不知道您为什么要这样做,但这里有两个选项: 将您的图像文件夹移出WebContent(如果您在战争中不需要它们,为什么它们会出现在这里?) 在项目属性(Deployment Assembly选项卡,尽管这可能因您的Eclipse版本而异)中,删除告诉Eclipse在war中包含WebContent并单独添加所有其他文件夹/文件的行 请参见它适用于/

如何配置eclipse,使/WebContent下的/images文件夹不包含在war导出的文件中?我了解了如何排除/src容器下的文件和文件夹。

我不知道您为什么要这样做,但这里有两个选项:

  • 将您的图像文件夹移出WebContent(如果您在战争中不需要它们,为什么它们会出现在这里?)
  • 在项目属性(Deployment Assembly选项卡,尽管这可能因您的Eclipse版本而异)中,删除告诉Eclipse在war中包含WebContent并单独添加所有其他文件夹/文件的行

请参见它适用于/src下的项目,我需要排除/WebContent下的对象答案上的注释表明它也适用于WebContent。