Can anyone tell me what an @ symbol before a variable means in ant build.xml file?
<subant target="@{target}">
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are no variables in (core) ant, but properties and attributes.
@{foo} is the syntax for accessing the value of a macrodef attribute inside a macrodef, i.e. :
output :
See Ant manual macrodef
Whereas ${foo} is the syntax for accessing the value of a property :
output :
See Ant manual property