I can't seem to figure out the order in which Idea copies files to build the web module from the "Web Resource Directory". It almost seems to be alhabetical. I have a web project that includes c:\work\cuds\war then c:\work\acfbuild\tdrive\adp2.9\war and no matter what order I place them in the web resource directory list, I always get the web.xml copied from the c:\work\acfbuild directory.
I even have the c:\work\cuds\war\WEB-INF\web.xml specified as the web module deployment descriptor but Idea still copies the wrong file. Sometimes when I restart Idea, it will load the correct web.xml when I click on it from the deployment view but most of the time it loads the wrong file to view. It always copies the wrong file.
Any help will be appreciated.