I want to exclude a directory from my war file


excludes = [‘src/main/webapp/’] }

this is not working for me. The war is including the file into my war root

Hello Kiran,

I’m assuming you’re using the WarPlugin? The WarPlugin configures the war task to include the content of webAppDir folder (defaults to src/main/webapp/) by calling “from(webappDir)” on the War task. The pattern in your exclude statement must match the content of src/main/webapp you want to exclude not the path to the wepappdir itself.

cheers, René