You might have a set of properties that is used on the developer machine, which varies from developer to developer, another set for a staging environment, and yet another fo
I use Ant's copy with a filter file.
In the directory with the config file with variables I have a directory with a file for each environment. The build script know the env and uses the correct variable file.