There is a Tomcat webapp that we update regularly. We are looking for an easy way to determine what version is now on the server.
Currently, the webapp has a specialized web-service that returns a version number. However, this requires us to remember to update the version number each time before we deploy the webapp. We are looking for a more automatic way.
One option that we consider is to add a web-service that returns the last update time of a certain file. However, we are not sure what file exactly to check and how to calculate its last-update-time.
Is there a better solution?