Ignore SVN files when exporting a WAR file from Eclipse?

Andrés Mejía picture Andrés Mejía · Aug 18, 2009 · Viewed 8.5k times · Source

I have a Dynamic Web Project in Eclipse. I can pack it to a WAR by right-clicking the project and choosing Export > WAR File. This creates the WAR file as expected and it works.

The problem is that Eclipse includes all the .svn folders of the project into the WAR file.

Is there a way to tell Eclipse to ignore .svn folders in the WAR exporting process? Or even better, tell it to ignore all files or folders that match some given regular expression?

Answer

Talles picture Talles · Oct 8, 2011

Enter the project properties > Resource > Resource Filters > Add... > Exclude All > Files and Folders > All children (recursive) > Name matches *.svn > OK.

All .svn files and folders will be ignored, including when you export WAR files.