Apache Ant Token Filter
Token filter allows us to filter data from the file while copying. To filter, a token is used which must matched to @token@ set in filter task. Tasks uses @ as a token separator. To implement this feature, Apache Ant provides <filter> which uses token attribute.
This feature should be used with text file only.
Apache Ant Token Filter Attributes
Apache Ant Token Filter Example
The following code copy recursively all the files from the source directory into the destination directory by replacing all the repeatition of the string @name@ with rohan.
To read all property entries from the student_data.properties file and set these as filters.