You could access all Java system properties directly via ${name}, e.g.
${user.name}, ${user.dir}, ${user.home}, …
You could read environment properties and use them
<properties environment=”env”/>
${env.ENVIRONMENT_VARIABLE}
e.g.
${env.USERPROFILE}, ${env.USERNAME}, ${env.PATH}
You could pass properties during Ants start
ant -Dname=value -Danothername=anothervalue
Also you Ant could ask for input
<input addproperty=”foo”/>
${foo}
Latest posts by Rajesh Kumar (see all)
- Implementing Managed IT Services: A Step-by-Step Guide - August 30, 2024
- DevOps Foundation Certification - August 29, 2024
- SRE Foundation Certification - August 29, 2024