Multiple webapp Folders

My Spring Tool Suite (STS) Eclipse project has multiple webapp folders - one for each customer. They have the path:

src/customers/[CUSTOMER_NAME]/main/webapp

I also have a common webapp folder at the standard

src/main/webapp

location.

I currently copy the content of one into the other using FileUtils using

processResources{

doFirst

but it doesn’t spot updates. Is there a better place to put it?

I use a copy because the war plug-in appears to only support a single webapp folder location.

Would war{ doFirst be a better choice?

You could simply add those folders to the ‘war’ task copyspec.

war {

from ‘src/customers/[customer_name]/main/webapp’

}