title: Where do you put server.xml in a tomcat eclipse project when checking into version control?
body: <p>When you create a tomcat project in eclipse, it puts the server.xml file under Servers, which appears as a separate "Project" in the project explorer. My question is, how best to check this into source code control, so that when another user attempts to check out the project, the server.xml file is in the correct place.</p>
  
  <p>I currently use the Perforce version control system, but I've experienced the same issue in the past with other systems.</p>
  
  <p>It's been my experience that other users will end up creating their own tomcat server in eclipse, and then they will have to copy in the custom server.xml.</p>
  
  <p>The best I've been able to do is save the server.xml into the WEB-INF or other directory inside the project, and then update that to source code control. However, this introduces risk, because you have to remember to save your server.xml changes back to WEB-INF. Not to mention that you have to document the copying of the server.xml as a setup step for users creating your project.</p>