Is there a way to tell Eclipse to not include specified files, directories, or patterns in a JAR or WAR?
Now that's cool, but that appears to only apply to files in the src directory. What actually brought this up was that I have files related to version control in the WebContent directory that I wanted to exclude.
Jay
2009-09-29 13:26:20
It applies to any source location, if you specify that WebContent is a source location, it will work for that location too - though it might cause other problems
Rich Seller
2009-09-29 14:34:55
+1
A:
We fought with this problem too and didn't find a good standard solution for it in Eclipse WTP.
Hence we added Project Archives to JBoss Tools (http://jboss.org/tools) which allow you to control explicitly via "ant filter sets" what goes in and what goes out of your archive. This archive you can then deploy with the standard WTP mechanism for deployment on the server types supplied by JBoss tools.
We are working on adding similar support back into native Eclipse WTP, but that won't be available until sometime next year.
Max Rydahl Andersen
2009-10-21 10:10:41