Is there a way to exclude the WEB-INF/src directory in a war built through IntelliJ?

I'd like to be able to exclude certain directories from a .war file - as an example the .war includes the Java source files, which I'd like to exclude. Is there a way to not include the WEB-INF/src directory in a war built through IntelliJ without using an Ant or similar to build the project?

Please sign in to leave a comment.