I have an Android app that needs to be built for different environments (e.g., UAT, staging, production, etc.). Each environment needs different properties (e.g., URLs, pack
A frequently asked question about Ant is:
How can I do something like
The following Ant build file was inspired by that FAQ.
parameters.properties
dev.home-url = http://home_dev.com
prod.home-url = http://home.com
build.xml
${local.property}
Executing the example
task outputs:
Buildfile: /workspace/build.xml
example:
[echo] http://home_dev.com
BUILD SUCCESSFUL
Total time: 405 milliseconds