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.
Asked
Active
Viewed 2,162 times
0
-
1See [this question on SO](http://stackoverflow.com/questions/1489179/exclude-files-from-jar-or-war-in-eclipse) – no.good.at.coding Aug 12 '11 at 15:36
-
It works for items under /src, I need to exclude objects under /WebContent – xain Aug 12 '11 at 20:15
-
The comment on the answer suggests it will work for WebContent too. – no.good.at.coding Aug 13 '11 at 00:48
1 Answers
2
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

ptyx
- 4,074
- 1
- 19
- 21