I use Gradle as a build tool, and the properties are stored in src / main / resources / myproject.properties. Some examples of properties include:
mail.server.url = http://mailserver.example.com
mail.server.username = username
mail.server.password = password
app.server.url = http://myserver.mydomain.com
During development, properties have different meanings from production servers. We are currently replacing values before deploying them to the production server. Is there a better way for us to indicate that properties should come from myproject-debug.properties during development, myproject-release.properties during release, myproject-qa during testing?
source
share