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
Use different properties files and use ant replace filters which will do the replacement based on environment for which the build is done.
See http://www.devrecipes.com/2009/08/14/environment-specific-configuration-for-java-applications/