开发者

Exclude /WebContent/images folder from war in eclipse

开发者 https://www.devze.com 2023-03-27 22:19 出处:网络
How can I configure eclipse in a way that the /images开发者_如何学运维 folder under /WebContent is not included in the war exported file ? I see how to exclude files and folders but under the /src con

How can I configure eclipse in a way that the /images开发者_如何学运维 folder under /WebContent is not included in the war exported file ? I see how to exclude files and folders but under the /src container.


I'm not sure exactly why you'd want to do that, but here are two options:

  • Move your image folder OUT of WebContent (if you don't need them in the war, why are they here in the first place?)
  • In the project properties (Deployment Assembly tab, although that might vary with your version of Eclipse), remove the line telling eclipse to include WebContent in the war and individually add all other folders/files
0

精彩评论

暂无评论...
验证码 换一张
取 消