I'm trying to use the Ant task <loadfile>
in a loop to parse the contents of a file. I have something like
<loadfile srcFile="@{some.input}" property="my.property">
Since Ant properties are immutable, this doesn't work for me. I need 'my.property' to update on every iteration. Is there a way to achieve this? I know Ant-contrib has a <var>
task but I'm not sure how to use <loadfile>
with it.
Any recommendations?
Thanks.
The Ant plugin Flaka provides a let task, allowing to overwrite existing properties or variables like that =
So no need to unset first and set afterwards. btw. Flaka has a unset task also ;-)