First, do not post the same question in multiple forums.
Take a look at the FilterInstance attribute for the jboss.deployment:type=DeploymentScanner,flavor=URL MBean in the server/xxx/conf/jboss-service.xml file. It lists several prefixes, suffixes and file names that the scanner ignores. You could either modify one of these lists, or rename the directory you don't want scanned to match one of these. Not sure if this will do what you want, but it is worth a try.
thank you for response, however it will not help. I made some investigation. DeploymentScanner scans for file that should be deployed, i.e. my WAR directory. However, when it decides to deploy the WAR directory it calls so called MainDeployer. The deployer then calls TomcatDeployer which is actually responsible for deploying WAR.
What I need is to configure TomcatDeployer to make it skip the selected directory. Is it possible? I haven't traced TomcatDeployer source file yet.