For an initial pilot of a small app, I would like to keep a separate file for users name/passwords to be used in dev environment, and one for the prd environment.
Up to now, I have two files, and I copy manually the prd one to naviox-users.properties before creating the war.
Can you suggest a better strategy?
The easiest way is to redefine your createWar Ant target in the build.xml of your project, so it copies the production naviox-users files when creating the war. Something like this:
I didn't test the above code, it's just to give you a clue.