In the past, I’ve only developed Java applications. This is my first time attempting an actual web app on my own, so pardon the painfully rookie question.
Should I add the WEB-INF/web.xml file to version control? It appears to be a generated file, so my instinct is to add it to the ignore list, but I thought I’d ask and make sure.
Thanks!
Your IDE has probably generated a sample web.xml file, which you will edit as your application expands. If this is the case, then it is definitely something you want to keep in source control.
As has been said in other answers, if you are actually using some web.xml generating tool, then keep that tool’s configuration in source control, and fire the tool up during your build process.