
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)
- Top 50 Azure DevOps interview questions and answers - December 2, 2023
- Is NebulaGraph Good for Analytics? - December 2, 2023
- Types of Cyber Attacks You Should be Aware of in 2024 - December 2, 2023