I need to access some files on servers from servlet. They have different paths on my development machine and on the deployment server. I would like to put some config file (with paths) somewhere (like shared
dir in capistrano deployment) so application could read it. Or maybe set some property on the application server or anything like that. I can use Tomcat, Jetty or Glassfish.
Currently I made a config file in WEB-INF with config for local machine. Deployment script that copies .war on the server, modifies the war file by putting server config file inside. It works, but is not too nice, and if something changes with paths on the server I would have to change local file and redeploy application.
Can you suggest better solution?