Possible Duplicate:
Ignore SVN files when exporting a WAR file from Eclipse?
Using eclipse + tomcat.
When I export a tomcat war file for my project, the war file contains all the .svn directories.
This is doubling the size of the war file and making deployments much longer than they need to be.
Is there a way to either mask these directories from the export mechanism (like a tar –exclude-from) or remove them from the war (tar –delete) ?
Go to the project properties, Java Build Path, select the Source tab. For each source directory, there are Included: and Excluded: lines. Put a pattern into the exclusions (something like **/.svn).
What happens is that the builder copies anything that isn’t a Java source file into the output folder as part of the build, unless it is in the exclusion list.