I'm still trying to stabilize the web.xml is optional policy. Maybe we just pull it. Here the problem is that if you try and <war> where there already is one, there may not be an addedWebXmlFile.
I would have thought isInUpdateMode would handle this, but it does not. Instead we remember tht a web.xml file was set on teh command line, and get away with it. I may also downgrade the error to a warning.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@473393 13f79535-47bb-0310-9956-ffa450edef68