tags:

views:

601

answers:

2

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?

+1  A: 

This seems to be documented in bug 182534 (2007! And still opened).

A custom separate ant script would be needed for now in order to build the exact war.
The internal "Export War" eclipse feature is not yet good enough for this scenario.

VonC
A: 

Installing the Subclipse-Plugin will make Eclipse aware of the SVN-Folders. This alsop includes ignoring them in a war-export.