Excluding the class files from the war file

Sharing a tip about 'deployment' profile configuration I learned recently. JDeveloper lets you to exclude the class files from the war file generated using the 'deploy' option.
How to do this?
1) Right-click on the web project, select 'Project Properties'
2) Select the 'Deployment' option on the left hand side of the dialog. Choose the deployment profile you are interested, click Edit.

3) Under 'File Groups -> WEB-INF/classes -> Filters' select the 'Files' tab. You can deselect the class you don't want to include. Alternatively you can select the 'Patters' tab to specify the pattern for inclusion.