tags:

views:

686

answers:

2

Is there a way to tell Eclipse to not include specified files, directories, or patterns in a JAR or WAR?

+1  A: 
Rich Seller
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
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
+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